Local functions


C# 8.0 – Static local functions

C# 7.0 introduced local functions and with C# 8.0 one can create static local functions. Let’s have a look at what differentiates them.


C# 7.0 – Local functions

There are situations when one needs a small helper method, but it’s not quite obvious where to put it. The method might not be generic enough to expose it as a new entity or even as a class member.