IEnumerable.Cast not calling cast overload
- by Martin Neal
I'm not understanding something about the way .Cast works. I have an explicit (though implicit also fails) cast defined which seems to work when I use it "regularly", but not when I try to use .Cast. Why? Here is some compilable code that demonstrates my problem.
public class Class1
{
public string prop1 { get; set; }
public int prop2 {…