I just noticed there are two methods to check if a class is derived from another class:
- The 'old' method which exists since .NET framework 1.1 :
Type.IsSubclassOf(Type)
- A 'new' method which exists only since .NET framework 4.5 :
TypeInfo.IsSubclassOf
Is there any reason this newer method was created? From what I see they both do the same.
Aucun commentaire:
Enregistrer un commentaire