override public bool Equals(object other) { ExternalMethod rhs = other as ExternalMethod; if (null == rhs) { return(false); } return(_mi.MethodHandle.Value == rhs._mi.MethodHandle.Value); }
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); }
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); }
public bool Equals(ExternalMethod other) { if (null == other) { return(false); } if (this == other) { return(true); } return(_memberInfo.MethodHandle.Value == other._memberInfo.MethodHandle.Value); }
override public bool Equals(object other) { if (null == other) { return(false); } if (this == other) { return(true); } ExternalMethod method = other as ExternalMethod; return(Equals(method)); }
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; }
public ExternalGenericMethodInfo(TypeSystemServices tss, ExternalMethod method) { _method = method; _tss = tss; }