• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Dotnet Stuff

  • Home
  • Articles
  • Tutorials
  • Forums
  • Career Advice
  • Jobs
  • .NET FAQs
  • News
  • Privacy Policy

What is the Difference Between IEnumerable and IQueryable in C#

Home › Forums › C# › What is the Difference Between IEnumerable and IQueryable in C#

Tagged: DIfference-IQueryable-IEnumerable, IEnumerable, IEnumerable-Vs-IQueryable, IQueryable, IQueryable Vs IEnumerable

  • This topic has 1 reply, 2 voices, and was last updated 8 years ago by Rajeev.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 26, 2017 at 12:51 pm #609
    Vikas Paul
    Spectator

    In a recent interview, I was asked about What is the Difference Between IEnumerable and IQueryable in C#?I googled it, but still not clear properly what is the difference and which all cases each one fit properly.Please explain in a simple manner that What is the Difference Between IEnumerable and IQueryable.

    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.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Related Posts:

  • OWIN Authentication in .NET Core
  • Serializing and Deserializing JSON using Jsonconvertor in C#
  • What is CAP Theorem? | What is Brewer’s Theorem?
  • SOLID -Basic Software Design Principles
  • What is Interface Segregation Principle (ISP) in SOLID Design Principles?

Primary Sidebar

Recent Posts

  • OWIN Authentication in .NET Core
  • Serializing and Deserializing JSON using Jsonconvertor in C#
  • What is CAP Theorem? | What is Brewer’s Theorem?
  • SOLID -Basic Software Design Principles
  • What is Interface Segregation Principle (ISP) in SOLID Design Principles?
  • What is Single Responsibility Principle (SRP) in SOLID Design Priciples?
  • What is the Liskov Substitution Principle(LSP) in SOLID Design Principles?
  • Dependency inversion principle(DIP) in SOLID Design
  • What is the Open Closed Principle in SOLID Design Principles?
  • What is the Difference Between Database Partitioning and Sharding?

Recent Forum Topics

  • What is the Difference Between IEnumerable and IQueryable in C#
  • How to remove Header of the XML file in C#?
  • What is DBMS?
  • What is RDBMS?
  • What is asp net framework ?

© Copywright 2017 Dotnetstuffs All Rights Reserved