Click here to Skip to main content
15,900,461 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: What is the better approach between IQueryable and IEnumerable ? Pin
dasblinkenlight15-Feb-11 5:15
dasblinkenlight15-Feb-11 5:15 
There are two sides to interfaces: one for communicating with a compiler, and one for communicating with programmers who read your code. You keep arguing that there's only the first side, pretending the second side does not exist. However, it's there, and I am sure you've been made painfully aware of it on more than one occasion, when the code compiled but did not work.
There are legitimate concerns that compilers simply cannot enforce, yet these concerns do not become less relevant because of it. For example, compilers cannot enforce exact type casts inside fast enumeration loops, but this means only that the programmers should pay more attention.
There is more to implementing an interface than providing implementations to all its methods so that the compiler stops complaining. For example, if you implement IQueryable in a way that reads everything from the database and then filters in memory, you will "provide the desired information", but not "in a useful manner". That does not make your class useless - others may still use it in their code. It's just that they will not be using it in a way they normally use an IQueryable.
I completely agree with your "class is a black box" comment, yet "poking one's finger into a class" is drastically different from understanding the intent behind its implementation.
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 
GeneralRe: Control Speaker Volume Pin
Kevin Marois14-Feb-11 11:08
professionalKevin Marois14-Feb-11 11:08 

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.