public static bool AreSame(TypeReference type, MonoTypeContext checkContext, TypeReference checkType) { if (ReferenceEquals(type, checkType)) { return(true); } if (type == null || checkType == null) { return(false); } MonoTypeContext context = new MonoTypeContext(checkType, checkContext); MonoTypeContext resolvedContext = context.Resolve(); return(MetadataResolver.AreSame(type, resolvedContext.Type)); }
public bool Equals(TypeReference x, TypeReference y) { return(MetadataResolver.AreSame(x, y)); }