C#: Anonymous method vs Named method

后端 未结 5 1459
渐次进展
渐次进展 2020-12-10 05:19

I\'m new to SO and programming and learning day by day with bits and pieces of tech (C#) jargons.

After Googling for a while, below is what I\'ve researched about

5条回答
  •  无人及你
    2020-12-10 05:51

    Anonymous methods or anonymous functions, what seems to be the same, basically are delegates. As the link you point out: http://msdn.microsoft.com/en-us/library/bb882516.aspx describes, anonymous methods provide a simplified way to pass method to be executed by another method. Like a callback. Another way to see it, is think about lambda expressions.

    A named by the contrast is any common method.

提交回复
热议问题