Add isSystemObject() method
This commit is contained in:
parent
1eedf7cb3e
commit
b530c1a313
|
@ -275,6 +275,10 @@ namespace de4dot.blocks {
|
||||||
typeReference.FullName == type + extra;
|
typeReference.FullName == type + extra;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool isSystemObject(TypeReference typeReference) {
|
||||||
|
return verifyType(typeReference, "mscorlib", "System.Object");
|
||||||
|
}
|
||||||
|
|
||||||
public static string getCanonicalizedTypeRefName(TypeReference typeRef) {
|
public static string getCanonicalizedTypeRefName(TypeReference typeRef) {
|
||||||
return getCanonicalizedTypeRefName(typeRef.Scope, typeRef.FullName);
|
return getCanonicalizedTypeRefName(typeRef.Scope, typeRef.FullName);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user