Пример #1
0
 public void TheMentalist()
 {
     // Use the Asyncronous Programming Model (APM) - a bit ugly in my eyes
     BackgroundMethodDelegate x = new BackgroundMethodDelegate(BackgroundMethod);
     IAsyncResult a = x.BeginInvoke("The Mentalist", null, null);
     x.EndInvoke(a);
 }
Пример #2
0
        public void TheMentalist()
        {
            // Use the Asyncronous Programming Model (APM) - a bit ugly in my eyes
            BackgroundMethodDelegate x = new BackgroundMethodDelegate(BackgroundMethod);
            IAsyncResult             a = x.BeginInvoke("The Mentalist", null, null);

            x.EndInvoke(a);
        }