M
Mark Olbert
I am going absolutely insane with this problem.
I've got two types that SHOULD be related.
public class B : A
{
}
B.GetType().IsSubclassOf(typeof(A)) returns FALSE
even though
B.GetType().BaseType.AssemblyQualifiedName == A.GetType().AssemblyQualifiedName
and I mean the two strings are exactly identical, down to the full version, the assembly name and the public key that's signed both
assemblies.
What's causing me to pull my hair out is that this stupid simple little test was working a week ago, and I don't recall doing
anything to the code to cause it to break...which means it must be something so obvious I'm not seeing it, or so subtle that I
wasn't aware that I was risking breaking something that was working.
Does anyone know of any instances where the B.GetType().IsSubclassOf(typeof(A)) will fail even though it shouldn't????
- Mark
I've got two types that SHOULD be related.
public class B : A
{
}
B.GetType().IsSubclassOf(typeof(A)) returns FALSE
even though
B.GetType().BaseType.AssemblyQualifiedName == A.GetType().AssemblyQualifiedName
and I mean the two strings are exactly identical, down to the full version, the assembly name and the public key that's signed both
assemblies.
What's causing me to pull my hair out is that this stupid simple little test was working a week ago, and I don't recall doing
anything to the code to cause it to break...which means it must be something so obvious I'm not seeing it, or so subtle that I
wasn't aware that I was risking breaking something that was working.
Does anyone know of any instances where the B.GetType().IsSubclassOf(typeof(A)) will fail even though it shouldn't????
- Mark