2017-10-22 90 views

回答

1

生产者将是产生结果的代码,

public static class Math 
{ 
    static int add(int a, int b) 
    { 
     return a + b; 
    } 
} 

而你将是消费者,代码正在调用这个类:

var result = Math.Add(2,3); 

至于未绑定的委托,我认为这被称为公开实例代表,请查看此Delegate not bound to an instance