Home › Forums › C# › What is the Difference Between IEnumerable and IQueryable in C# › Reply To: What is the Difference Between IEnumerable and IQueryable in C#
July 2, 2017 at 6:43 pm
#1075
Rajeev
Keymaster
The main difference between IEnumerable and IQueryable in C# is,
IEnumerable is suitable for querying data from in-memory collections such as Array and List.IEnumerable is beneficial for LINQ to XML and LINQ to Object queries.
IQueryable is suitable for querying data from out-of-memory collections such as databases.IQueryable is beneficial for Linq to SQL queries.