Add isSystemObject() method

This commit is contained in:
de4dot 2011-10-31 19:39:00 +01:00
parent 1eedf7cb3e
commit b530c1a313

View File

@ -275,6 +275,10 @@ namespace de4dot.blocks {
typeReference.FullName == type + extra;
}
public static bool isSystemObject(TypeReference typeReference) {
return verifyType(typeReference, "mscorlib", "System.Object");
}
public static string getCanonicalizedTypeRefName(TypeReference typeRef) {
return getCanonicalizedTypeRefName(typeRef.Scope, typeRef.FullName);
}