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));
        }
Пример #2
0
 public bool Equals(TypeReference x, TypeReference y)
 {
     return(MetadataResolver.AreSame(x, y));
 }