Why is ienumerable used?



Why is ienumerable used?..

Answer / Mahendra

IEnumerable<T> in C# is an interface that represents a sequence of elements. It's often used to create collections because it allows for deferred execution, which can improve performance by not executing the query until the results are actually needed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is difference between ienumerable and list?

1 Answers  


How do you ensure the assembly created in c# is interoperable with vb.net?

4 Answers   IBM,


What are escape sequences explain with example?

1 Answers  


What is int parse in c#?

1 Answers  


Can a constructor be static in c#?

1 Answers  


What is int16?

1 Answers  


Is c# good for beginners?

1 Answers  


Explain concurrency with aop?

1 Answers  


Why is lazy loading?

1 Answers  


List the difference between the virtual method and the abstract method?

1 Answers  


What is c# best for?

1 Answers  


What statements can enclose a "continue" statement?

3 Answers   Fortech,


Categories