QuoteReplyTopic: Covariance in IEntityQuery<T>? Posted: 13-Jul-2010 at 6:47pm
Great idea. We looked at this last year and really wanted to do it, but Silverlight does not support covariance/contravariance yet and we did not want to break the consistency of our API.
With the move to .NET4 and it's covariance/contravariance support, I'm wondering if it would be possible to mark IEntityQuery<T> covariant? It looks like the standard IQueryable<T> and IOrderedQueryable<T> already support covariance.
One reason I'd really like to see this is for situations like the following:
As it stands now, the return type would have to be the non-generic IEntityQuery but then I couldn't perform further type-safe filtering or ordering, etc. on the query.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum