You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classType = // some code which returns IClass = Derived
if classType.BaseType.IsGeneric && classType.BaseType.TypeArguments[0] == classType
}} same {{
end
So apparently Derived and its parent generic argument Derived are different types, why?
The text was updated successfully, but these errors were encountered:
It is on NTypewriter side, the equality operator is not overridden, so standard reference comparison is used, and since an instance of object representing a given type is not cached, the results are exactly as you described.
Hello, I don't know if I'm missing something here (about your library or Roslyn), but until know I had compared all class types by equality:
However if I have a class like this in C#:
This does not work:
So apparently Derived and its parent generic argument Derived are different types, why?
The text was updated successfully, but these errors were encountered: