2017-10-22 54 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