lundi 20 juillet 2020

C# GetType with AssemblyQualifiedName, but version and publicKey changed

I have an object from which I save the type as a string.

var typeString = typeof(SomeType).AssemblyQualifiedName;

This string now includes a specific name, version and PublicKey.

What happens when version or PublicKey changed? Will it still work? As far as my tests go, it seems version doesn't matter but PublicKey will break it? Is this correct or did I miss something? Why is this the case?





Aucun commentaire:

Enregistrer un commentaire