在编译的时候委托会动态生成一个类,比如说:
public deledage int BinaryOp(int i , int j) ;
就相当于:
//sealed的意思是密封的。代表这个类不能继承
sealed class BinaryOp:System.MulticastDelegate
{
public BinaryOp (object target , unit functionAddress ) ;
public void Invoke (int x, int y );
public IAsyncResult BeginInvoke ( int x , int y , AsyncCallBack cb , object state );
public int EndInvoke (IAsyncResult result);
}
public deledage int BinaryOp(int i , int j) ;
就相当于:
//sealed的意思是密封的。代表这个类不能继承
sealed class BinaryOp:System.MulticastDelegate
{
public BinaryOp (object target , unit functionAddress ) ;
public void Invoke (int x, int y );
public IAsyncResult BeginInvoke ( int x , int y , AsyncCallBack cb , object state );
public int EndInvoke (IAsyncResult result);
}