jeudi 6 août 2015

How to compare two generic "Type" variables?

I'm confused... I have no idea why this particular problem is occurring and I was wondering if someone could shed some light on the subject. I'm doing some reflection operations which requires a lot of Type comparisons - as such I'm storing some information with the "Type" as the key...

However, it seems two of my types, even though they seem superficially the same, are not actually the same as it's throwing a "Key Not Found" exception when I try to look it up.

Here's a screenshot of my inspector:

enter image description here

Is there some detail about comparing underlying types I might be missing?





Aucun commentaire:

Enregistrer un commentaire