delegate中文意思我不会翻译,好像有人翻译成委托。它相当于C和Delphi中的函数指针,但是比函数指针更好。
delegate主要应用在event上,实际上C#在event处理上和Java非常相似。

解决方案 »

  1.   

    是呀!相当于函数指针。我想只要这样记着就行。DELEGATE是委托的关健字,它的功能相当于C/C++中的函数指针.
    if (input == "M") 
    process = new processDelegate(Multiply); //**这儿是创建一个委托实例.也就是然它有所指向吧!让它指向MULTIPLY方法.
    else 
    process = new processDelegate(Divide); //**这也是一样的.
    Console.WriteLine("Result: {0}", process(param1, param2)//这儿才是真正的的调用); 
      

  2.   

    I think the concept of delegate was invented by Anders Hejlsberg, first in VJ++ and then in C#. Anders Hejlsberg invented Delphicheck out these two articles in MSDN magazine:
    Implementation of Events with Delegates by Jeffrey Richter 
    http://msdn.microsoft.com/msdnmag/issues/01/08/net/net0108.asp.NET Delegates: Making Asynchronous Method Calls in the .NET Environment by Richard Grimes 
    http://msdn.microsoft.com/msdnmag/issues/01/08/Async/Async.asp
      

  3.   

    请问各位 
       上面代码 processDelegate 是不是可以指向上面代码任何方法??
      

  4.   

    as long as the signature of function matches
      

  5.   

    请问Ninputer(装配脑袋):
    你说是“MS官方译法”,请问这些官方译法在哪里可以找到?
      

  6.   

    无法找到,这是大量文档积累的经验。注意,通常最新的MSDN中文版中并不是完全正确的翻译方法
      

  7.   

    Ninputer翻译是比较好些,不过委托也有很多的说法. :)
      

  8.   

    委托,委派,代理,唉,怎么听都别扭,还是delegate好了。