1

A long time ago I used to code in Delphi/Pascal, and a very nice feature was to be able to declare a procedure as internal to another procedure. I can't remember the syntax, but it meant you could have code all in the "same" place and not have declare the inner procedure somewhere else in your code.

Is there a way to achieve something like that in C#?

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108
Peter
  • 1,292
  • 4
  • 15
  • 33
  • The discussion around the "Method Within A Method" provides a number of useful answers. I obviously didn't use the correct key words when asking the question. :) – Peter Jun 27 '14 at 12:36
  • It doesn't address the Pascal angle, iow only the enclosing of functions, not accessing parent variable and parameter frames from inner functions. – Marco van de Voort Jun 28 '14 at 12:07

0 Answers0