コード例 #1
0
 public static bool IsType(this TypeReference type, TypeReference targetType) =>
 type.GetAssemblyQualifiedName() == targetType.GetAssemblyQualifiedName();
コード例 #2
0
 public static bool IsType(this TypeReference type, string assemblyQualifiedName) =>
 assemblyQualifiedName == type.GetAssemblyQualifiedName();
コード例 #3
0
 public static bool IsType(this TypeReference type, Type targetType) =>
 type.GetAssemblyQualifiedName() == targetType.GetAssemblyQualifiedName() ||
 type.FullName == targetType.FullName &&
 type.Resolve().GetAssemblyQualifiedName() == targetType.GetAssemblyQualifiedName();