Casting from IEnumerable<Object> to IEnumerable<string>
- by Praveen
Hi All,
Recently I found a very surprising behavior in c#.
I had a method which takes IEnumerable<Object> as a parameter and i was passing
IEnumerable<string> but it's not possible.
While in c# everything can be upcast to Object than why this is not possible?
It's totally confusing for me.
Please someone clear me on this issue.