C Sharp Syntax - Anonymous Methods

Anonymous Methods

Anonymous methods, or in their present form more commonly referred to as "lambda expressions", is a feature which allows you to write inline closure-like functions in your code.

There are various ways to create anonymous methods. Prior to C# 3.0 there was limited support by using delegates.

See also

  • Anonymous function
  • Closure (computer science)

Read more about this topic:  C Sharp Syntax

Famous quotes containing the words anonymous and/or methods:

    Men, my dear, are very queer animals, a mixture of horse- nervousness, ass-stubbornness, and camel-malice—with an angel bobbing about unexpectedly like the apple in the posset, and when they can do exactly as they please, they are very hard to drive.
    Oh, England. Sick in head and sick in heart,
    Sick in whole and every part,
    And yet sicker thou art still
    For thinking that thou art not ill.
    —Thomas Henry Anonymous (1825–95)

    All men are equally proud. The only difference is that not all take the same methods of showing it.
    François, Duc De La Rochefoucauld (1613–1680)