Interviews10 answers
Difference between IEnumerable and Enumerable
10 Answers
IEnumerable is an interface. Enumerable is helper class which implements the method of IEnumerable interface.IEnumerable is just pure abstract class.
sushil kumarPosted Mar 7, 2019, 7:59 PM EST
IEnumerable is an interface an object can implement if it wants clients to able able to iterate through its contents. Enumerable is a helper class that contaions static methods that implement the IEnummerbale extensions. So if a class supports IEnummerable you can do this.
https://forums.asp.net/t/1995830.aspx?Differernce+between+IEnumerable+and+Enumerable+
Shivam ShuklaPosted Jun 27, 2018, 5:57 AM EDT
IEnumerable: it is an interface and it is part of system.collection namespace . it has one methods such as GetEnumerator.
Enumerable: it is a class.it is part of Linq library and is a bunch of extension methods written for the IEnumerable interface.
Pankaj KumarPosted Jun 19, 2018, 3:25 AM EDT
IEnumerable is an interface. It is part of system.collection namespace and it has one method, GetEnumerator. This is the method the foreach loop uses loop through a collection and returns an IEnumerator Interface.
An Enumerable class is part of Linq library and is a bunch of extension methods written for the IEnumerable interface. It has many extension methods like First, FirstorDefault, Any, Last, LastorDefault, Max, Sum, Average etc...
Jignesh KumarPosted Jun 13, 2018, 9:59 PM EDT
IEnumerable is an interface and Enumerable is a class which is used to implement IEnumerable. The Enumerable class is part of Linq library and contain many extension methods written for the IEnumerable interface. (like Any(), Count(), etc).
Deepak VermaPosted May 18, 2018, 3:40 AM EDT
IEnumerable is an interface that defines one method GetEnumerator which returns an IEnumerator interface, this in turn allows readonly access to a collection. A collection that implements IEnumerable can be used with a foreach statement.
Prabhu NarayananPosted May 17, 2018, 1:56 AM EDT
IEnumerable is an interface. It is used to iterate content. and Enumerable is a class to implement the IEnumerable.
If you want more information please visit following URL
https://msdn.microsoft.com/en-us/library/system.linq.enumerable(v=vs.100).ASPX
Shrimant TelgavePosted May 6, 2018, 9:28 AM EDT
IEnumerable- It is an Interface and Exposes the enumerator, which supports a simple iteration over a collection of a specified type.
Enumerable- It is a class and Provides a set of static methods for querying objects that implement IEnumerable.
Sanjit Kumar SinghPosted May 4, 2018, 8:52 PM EDT
IEnumerable An enumerable class implements the IEnumerable interface. The IEnumerable interface has only one method GetEnumerator, which returns an IEnumerator interface.
Satish Kumar VadlavalliPosted Apr 4, 2018, 4:09 AM EDT
IEnumerable is an interface.
Enumerable class is part of Linq library and is a bunch of extension methods written for the IEnumerable interface.
https://msdn.microsoft.com/en-us/library/system.linq.enumerable(v=vs.100).ASPX
Tushar DikshitPosted Apr 3, 2018, 11:22 AM EDT









