/// <summary> /// Fetch a MethodRef descriptor for the method "retType name (pars, optPars)". /// If one exists, it is returned, else one is created. /// </summary> /// <param name="name">method name</param> /// <param name="retType">return type</param> /// <param name="pars">parameter types</param> /// <param name="optPars">optional param types for this vararg method</param> /// <returns>a descriptor for this method</returns> public MethodRef AddVarArgMethod(string name, Type retType, Type[] pars, Type[] optPars) { Contract.Requires(name != null); Contract.Requires(retType != null); Contract.Requires(pars != null); Contract.Requires(optPars != null); MethodRef meth = defaultClass.AddVarArgMethod(name, retType, pars, optPars); return(meth); }