Create a method for a delegate.
                  
                  
                  public static void DelegateMethod(string message)
                  
                  
                  {
                  
                  
                      Console.WriteLine(message);
                  
                  
                  }
                  
                  
                  // Instantiate the delegate.
                  
                  
                  Del handler = DelegateMethod;
                  
                  
                  // Call the delegate.
                  
                  
                  handler("Hello World");
                  
                  
                
никак? просто использование делегата?
Обсуждают сегодня