adspace


What is local function?

Answer Posted / Mrs.sugandh Sinha

A local function in C# is a function declared within another function or a block of code. Local functions have access to the variables defined in their parent scope, and they can help simplify complex code by breaking it down into smaller, more manageable units.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is expression tree in c#?

998


Which namespaces are necessary to create a localized application?

1142


Why can't we use a static class instead of singleton?

954


How do you inherit a class into other class in c#?

993


How to assign Null value to Var?

1063


What is an abstract class c#?

969