Tuesday, June 19, 2012

.AsQueryable() is really ghetto.

This provides a way to cast an IEnumerable to IQueryable shape in the naming of horrible hacking. C# 4.0 in a Nutshell mentions this in Chapter 8 and I witnessed it some firsthand at AMD. Bad, bad, bad. An IQueryable that is not a lifeline to a database is just misleading. Ick!

No comments:

Post a Comment