c#关于异步操作。

来源:互联网 发布:淘宝滥用商标关键字 编辑:程序博客网 时间:2024/04/30 10:51

定义异步方法

        delegate void InitUserControldelegate(); 

        private void InitUserControl()
        {

            //异步实现的内容
            
        }

实现异步

InitUserControldelegate ic = new InitUserControldelegate(InitUserControl);
this.BeginInvoke(ic);