Is it possible to declare a method within another method in C#?
For example like that:
void OuterMethod()
{
int anything = 1;
InnerMethod(); // call function
void InnerMethod()
{
int PlitschPlatsch = 2;
}
}
See Question&Answers more detail:os