MakeGenericMethod() public method

public MakeGenericMethod ( ) : MethodInfo
return System.Reflection.MethodInfo
Esempio n. 1
0
 public override MethodInfo MakeGenericMethod(params Type[] typeArgs)
 {
     if (!this.IsGenericMethodDefinition)
     {
         throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericMethodDefinition"));
     }
     return(MethodBuilderInstantiation.MakeGenericMethod((MethodInfo)this, typeArgs));
 }
        public override MethodInfo MakeGenericMethod(params Type[] typeArgs)
        {
            if (!IsGenericMethodDefinition)
            {
                throw new InvalidOperationException(SR.Format(SR.Arg_NotGenericMethodDefinition, this));
            }

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

            return(MethodBuilderInstantiation.MakeGenericMethod(this, typeArgs));
        }
Esempio n. 4
0
 public override MethodInfo MakeGenericMethod(params Type[] typeArguments)
 {
     return(MethodBuilderInstantiation.MakeGenericMethod(this, typeArguments));
 }