What is local function?



What is local function?..

Answer / 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

More C Sharp Interview Questions

What is covariance and contravariance? Did Delegate and method overriding support these?

1 Answers   TCS,


Can we create instance of private class in c#?

1 Answers  


Explain About ADO and its objects

1 Answers   DELL,


Is c# code is unmanaged or managed code?

1 Answers  


What is asp net in c#?

1 Answers  


Explain the difference between Metadata and Manifest

1 Answers   HCL,


what is the default access for a class

1 Answers   Cognizant,


What is typeof undefined?

1 Answers  


What is Implementation inheritance

1 Answers  


Can an interface inherit class/abstract class.

1 Answers   Synechron,


Is comparator a functional interface?

1 Answers  


Is array reference type / value type?

15 Answers   Accenture,


Categories