Inheritance: System.Reflection.MethodInfo
コード例 #1
0
ファイル: ParameterInfo.cs プロジェクト: randomize/VimConfig
 internal ParameterInfo(ParameterInfo accessor, MethodBuilderInstantiation method) : this(accessor, (MemberInfo) method)
 {
     this.m_signature = accessor.m_signature;
     if (this.ClassImpl.IsGenericParameter)
     {
         this.ClassImpl = method.GetGenericArguments()[this.ClassImpl.GenericParameterPosition];
     }
 }
コード例 #2
0
        public override MethodInfo MakeGenericMethod(params Type[] typeArgs)
        {
            if (!IsGenericMethodDefinition)
            {
                throw new InvalidOperationException(SR.Format(SR.Arg_NotGenericMethodDefinition, this));
            }

            return(MethodBuilderInstantiation.MakeGenericMethod(this, typeArgs));
        }
コード例 #3
0
        public override MethodInfo MakeGenericMethod(params Type[] typeArgs)
        {
            if (!IsGenericMethodDefinition)
            {
                throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericMethodDefinition"));
            }

            return(MethodBuilderInstantiation.MakeGenericMethod(this, typeArgs));
        }
コード例 #4
0
        public override MethodInfo MakeGenericMethod(params Type[] typeArgs)
        {
            if (!IsGenericMethodDefinition)
            {
                throw new InvalidOperationException(SR.Arg_NotGenericMethodDefinition);
            }
            Contract.EndContractBlock();

            return(MethodBuilderInstantiation.MakeGenericMethod(this, typeArgs));
        }
コード例 #5
0
 public override MethodInfo MakeGenericMethod(params Type[] typeArguments)
 {
     return(MethodBuilderInstantiation.MakeGenericMethod(this, typeArguments));
 }