How can I cast an object to IEnumerable?
object
IEnumerable
I know that the object implements IEnumerable but I don\'t kn
I ran into the same issue with covariance not supporting value types, I had an object with and actual type of List and needed an IEnumerable. A way to generate an IEnumerable when just IEnumerable isn't good enough is to use the linq Cast method
List
((IEnumerable)lhsValue).Cast()