the main reason for local function is to give the intent: This code is only for this method; do not reuse it from other places. Reference Links § c# - Private methods vs local functions - Stack Overflow See also § Dissecting the local functions in C# 7 - Developer Support