I'm using the latest version of reflector to view the CLR 4 assemblies. I was hoping that like with ILDasm, that I would be able to see which interfaces are co/contravariant but that information isn't displayed in the disassembly (regardless of the language chosen).

In ILDasm, IEnumerable<T> will show as "System.Collections.Generic.IEnumerable`1<+ T>" (note the + to indicate that T is covariant) and IEqualityComparer<T> will show as "System.Collections.Generic.IEqualityComparer`1<- T>" (note the - to indicate that T is contravariant).

Will reflector be updated to display this information?
andrews
0

Comments

1 comment

  • Clive Tong
    Hi.

    I've just been working on adding the new C# 4 language features to Reflector. IEnumerable, for example, now displays as
    public interface IEnumerable<out T> : IEnumerable

    We should be releasing this as part of an EAP in the near future.
    Clive Tong
    0

Add comment

Please sign in to leave a comment.