Is it possible to declare a method within another method in C#?
For example like that:
void OuterMethod() { int anything = 1; InnerMethod();
Five years have passed since this question was asked and now C# 7 is coming.
It's slated to include local functions, and is apparently already implemented.
Local functions (Proposal: #259) [currently in future branch]
https://github.com/dotnet/roslyn/issues/259