internal static RuntimeNamedMethodInfo <TRuntimeMethodCommon> GetRuntimeNamedMethodInfo(TRuntimeMethodCommon common, RuntimeTypeInfo reflectedType)
        {
            RuntimeNamedMethodInfo <TRuntimeMethodCommon> method = new RuntimeNamedMethodInfo <TRuntimeMethodCommon>(common, reflectedType);

            method.WithDebugName();
            return(method);
        }
Beispiel #2
0
        internal static RuntimeNamedMethodInfo GetRuntimeNamedMethodInfo(MethodHandle methodHandle, RuntimeNamedTypeInfo definingTypeInfo, RuntimeTypeInfo contextTypeInfo)
        {
            RuntimeNamedMethodInfo method = new RuntimeNamedMethodInfo(methodHandle, definingTypeInfo, contextTypeInfo);

            method.WithDebugName();
            return(method);
        }
Beispiel #3
0
 public sealed override bool Equals(Object obj)
 {
     RuntimeNamedMethodInfo other = obj as RuntimeNamedMethodInfo;
     if (other == null)
         return false;
     return this._common.Equals(other._common);
 }
        public sealed override bool Equals(Object obj)
        {
            RuntimeNamedMethodInfo other = obj as RuntimeNamedMethodInfo;

            if (other == null)
            {
                return(false);
            }
            return(_common.Equals(other._common));
        }
Beispiel #5
0
        public sealed override bool Equals(Object obj)
        {
            RuntimeNamedMethodInfo other = obj as RuntimeNamedMethodInfo;

            if (other == null)
            {
                return(false);
            }
            if (!_common.Equals(other._common))
            {
                return(false);
            }
            if (!(_reflectedType.Equals(other._reflectedType)))
            {
                return(false);
            }
            return(true);
        }
Beispiel #6
0
 internal static RuntimeMethodInfo GetRuntimeConstructedGenericMethodInfo(RuntimeNamedMethodInfo genericMethodDefinition, RuntimeType[] genericTypeArguments)
 {
     return(new RuntimeConstructedGenericMethodInfo(genericMethodDefinition, genericTypeArguments).WithDebugName());
 }
Beispiel #7
0
 private RuntimeConstructedGenericMethodInfo(RuntimeNamedMethodInfo genericMethodDefinition, RuntimeTypeInfo[] genericTypeArguments)
 {
     _genericMethodDefinition = genericMethodDefinition;
     _genericTypeArguments    = genericTypeArguments;
 }
 private RuntimeConstructedGenericMethodInfo(RuntimeNamedMethodInfo genericMethodDefinition, RuntimeTypeInfo[] genericTypeArguments)
 {
     _genericMethodDefinition = genericMethodDefinition;
     _genericTypeArguments = genericTypeArguments;
 }