-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 1.8.3
-
Component/s: None
-
None
It would be nice if given a class like:
public class C { public int _id; public object F; public object[] L; }
One could write LINQ queries like:
collection.AsQueryable<C>().Where(c => (int)c.F > 10); // or collection.AsQueryable<C>().Where(c => c.L.Any(o => (int)o > 10));
Normally we deduce the serialized form of the value from the type information of the field, but in this case we would have to deduce the desired type from the cast used in the query.
Not sure what all the ramifications of this feature are... it's possible that there is more to it than initially meets the eye and this might not turn out to be easily doable. So the first step is to properly research the feasability of this feature.
- related to
-
CSHARP-613 LINQ queries don't work with fields/properties of type short (Int16)
- Closed