Advantages of using delegates?

前端 未结 14 1303
渐次进展
渐次进展 2020-12-13 11:39

I\'m looking to implement the Observer pattern in VB.NET or C# or some other first-class .NET language. I\'ve heard that delegates can be used for this, but can\'t figure ou

14条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-13 12:15

    Actually there was an interesting back-and-forth between Sun and Microsoft about delegates. While Sun made a fairly strong stance against delegates, I feel that Microsoft made an even stronger point for using delegates. Here are the posts:

    http://java.sun.com/docs/white/delegates.html

    http://msdn.microsoft.com/en-us/vjsharp/bb188664.aspx

    I think you'll find these interesting reading...

提交回复
热议问题