Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
QuestionWhat is the better approach between IQueryable and IEnumerable ? Pin
Nadia Monalisa14-Feb-11 15:13
Nadia Monalisa14-Feb-11 15:13 
AnswerRe: What is the better approach between IQueryable and IEnumerable ? Pin
PIEBALDconsult14-Feb-11 17:16
mvePIEBALDconsult14-Feb-11 17:16 
GeneralRe: What is the better approach between IQueryable and IEnumerable ? Pin
Nadia Monalisa14-Feb-11 17:59
Nadia Monalisa14-Feb-11 17:59 
GeneralRe: What is the better approach between IQueryable and IEnumerable ? Pin
PIEBALDconsult15-Feb-11 1:53
mvePIEBALDconsult15-Feb-11 1:53 
AnswerRe: What is the better approach between IQueryable and IEnumerable ? Pin
dasblinkenlight14-Feb-11 21:25
dasblinkenlight14-Feb-11 21:25 
GeneralRe: What is the better approach between IQueryable and IEnumerable ? Pin
PIEBALDconsult15-Feb-11 2:02
mvePIEBALDconsult15-Feb-11 2:02 
GeneralRe: What is the better approach between IQueryable and IEnumerable ? Pin
dasblinkenlight15-Feb-11 2:31
dasblinkenlight15-Feb-11 2:31 
GeneralRe: What is the better approach between IQueryable and IEnumerable ? Pin
PIEBALDconsult15-Feb-11 4:19
mvePIEBALDconsult15-Feb-11 4:19 
So what? The compiler can't enforce intents expressed in documentation. All that matters is that the class provides the signatures required by the interface -- the members don't even need to do anything, or they can throw NotImplementedExceptions for all the compiler cares.

A developer can implement an interface any darn way he likes; an IEnumerable can access a database or a Random or any old thing, an IQueryable can access a Web Service or IME or shared memory, the interfaces don't care. It all depends on what the developer needs to do. It is then up to the user of the class to decide whether or not that class provides the desired information in a useful manner. Other than that, the class is a black box and you shouldn't go poking your fingers in it.
GeneralRe: What is the better approach between IQueryable and IEnumerable ? Pin
dasblinkenlight15-Feb-11 5:15
dasblinkenlight15-Feb-11 5:15 
GeneralRe: What is the better approach between IQueryable and IEnumerable ? Pin
PIEBALDconsult15-Feb-11 8:32
mvePIEBALDconsult15-Feb-11 8:32 
GeneralRe: What is the better approach between IQueryable and IEnumerable ? Pin
dasblinkenlight15-Feb-11 9:40
dasblinkenlight15-Feb-11 9:40 
GeneralRe: What is the better approach between IQueryable and IEnumerable ? Pin
PIEBALDconsult15-Feb-11 10:03
mvePIEBALDconsult15-Feb-11 10:03 
GeneralRe: What is the better approach between IQueryable and IEnumerable ? Pin
PIEBALDconsult15-Feb-11 10:09
mvePIEBALDconsult15-Feb-11 10:09 
QuestionControl Speaker Volume Pin
Kevin Marois14-Feb-11 8:21
professionalKevin Marois14-Feb-11 8:21 
AnswerRe: Control Speaker Volume Pin
DaveyM6914-Feb-11 9:15
professionalDaveyM6914-Feb-11 9:15 
GeneralRe: Control Speaker Volume Pin
Kevin Marois14-Feb-11 10:27
professionalKevin Marois14-Feb-11 10:27 
GeneralRe: Control Speaker Volume Pin
DaveyM6914-Feb-11 10:58
professionalDaveyM6914-Feb-11 10:58 
GeneralRe: Control Speaker Volume Pin
Kevin Marois14-Feb-11 11:03
professionalKevin Marois14-Feb-11 11:03 
GeneralRe: Control Speaker Volume Pin
Kevin Marois14-Feb-11 11:36
professionalKevin Marois14-Feb-11 11:36 
GeneralRe: Control Speaker Volume Pin
DaveyM6914-Feb-11 11:45
professionalDaveyM6914-Feb-11 11:45 
GeneralRe: Control Speaker Volume Pin
Kevin Marois14-Feb-11 11:49
professionalKevin Marois14-Feb-11 11:49 
GeneralRe: Control Speaker Volume Pin
DaveyM6914-Feb-11 11:58
professionalDaveyM6914-Feb-11 11:58 
GeneralRe: Control Speaker Volume Pin
DaveyM6914-Feb-11 15:08
professionalDaveyM6914-Feb-11 15:08 
GeneralRe: Control Speaker Volume Pin
Kevin Marois15-Feb-11 5:48
professionalKevin Marois15-Feb-11 5:48 
GeneralRe: Control Speaker Volume Pin
DaveyM6914-Feb-11 11:04
professionalDaveyM6914-Feb-11 11:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.