mercredi 2 septembre 2015

What is recommended way to compare ReflectionOnlyType with Type?

I have realized that I cannot directly compare types from reflection only loaded assemblies with types resolved by typeof, even they both are from the same assembly.

I am currently using: reflectionOnlyType.AssemblyQualifiedName == type.AssemblyQualifiedName.

What is the recommended way?





Aucun commentaire:

Enregistrer un commentaire