Casting from IEnumerable<Object> to IEnumerable<string>
Posted
by Praveen
on Stack Overflow
See other posts from Stack Overflow
or by Praveen
Published on 2009-03-04T07:48:07Z
Indexed on
2010/03/23
22:53 UTC
Read the original article
Hit count: 717
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.
© Stack Overflow or respective owner