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:

    I cannot say what poetry is; I know that our sufferings and our concentrated joy, our states of plunging far and dark and turning to come back to the world—so that the moment of intense turning seems still and universal—all are here, in a music like the music of our time, like the hero and like the anonymous forgotten; and there is an exchange here in which our lives are met, and created.
    Muriel Rukeyser (1913–1980)

    I conceive that the leading characteristic of the nineteenth century has been the rapid growth of the scientific spirit, the consequent application of scientific methods of investigation to all the problems with which the human mind is occupied, and the correlative rejection of traditional beliefs which have proved their incompetence to bear such investigation.
    Thomas Henry Huxley (1825–95)