Example #1
0
        override public bool Equals(object other)
        {
            ExternalMethod rhs = other as ExternalMethod;

            if (null == rhs)
            {
                return(false);
            }
            return(_mi.MethodHandle.Value == rhs._mi.MethodHandle.Value);
        }
Example #2
0
 public MixedGenericMethod(TypeSystemServices tss, ExternalMethod definition, IType[] arguments) : base(tss, definition.MethodInfo)
 {
     _definition  = definition;
     _arguments   = arguments;
     _constructed = IsConstructed();
     _typeMapper  = new GenericTypeMapper(
         tss,
         definition.GenericMethodDefinitionInfo.GenericParameters,
         arguments);
 }
Example #3
0
        public IMethod Map(MethodInfo method)
        {
            object  key    = GetCacheKey(method);
            IMethod entity = (IMethod)_entityCache[key];

            if (null == entity)
            {
                entity            = new ExternalMethod(this, method);
                _entityCache[key] = entity;
            }
            return(entity);
        }
Example #4
0
        public bool Equals(ExternalMethod other)
        {
            if (null == other)
            {
                return(false);
            }
            if (this == other)
            {
                return(true);
            }

            return(_memberInfo.MethodHandle.Value == other._memberInfo.MethodHandle.Value);
        }
Example #5
0
        override public bool Equals(object other)
        {
            if (null == other)
            {
                return(false);
            }
            if (this == other)
            {
                return(true);
            }

            ExternalMethod method = other as ExternalMethod;

            return(Equals(method));
        }
Example #6
0
        public bool Equals(ExternalMethod other)
        {
            if (null == other)
            {
                return(false);
            }
            if (this == other)
            {
                return(true);
            }

#if DNXCORE50
            return(_memberInfo.MetadataToken == other._memberInfo.MetadataToken);
#else
            return(_memberInfo.MethodHandle.Value == other._memberInfo.MethodHandle.Value);
#endif
        }
 public ExternalGenericMethodInfo(IReflectionTypeSystemProvider provider, ExternalMethod method) : base(provider)
 {
     _method = method;
 }
 public ExternalGenericMethodDefinitionInfo(TypeSystemServices tss, ExternalMethod method) :     base(tss)
 {
     _method = method;
 }
 public ExternalConstructedMethodInfo(TypeSystemServices tss, ExternalMethod method)
 {
     _method = method;
     _tss    = tss;
 }
 public ExternalConstructedMethodInfo(IReflectionTypeSystemProvider tss, ExternalMethod method)
 {
     _method = method;
     _tss    = tss;
 }
Example #11
0
 public ExternalGenericMethodInfo(TypeSystemServices tss, ExternalMethod method)
 {
     _method = method;
     _tss    = tss;
 }