src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Add a method to this class
/// </summary>
/// <param name="name">method name</param>
/// <param name="retType">return type</param>
/// <param name="pars">parameter types</param>
/// <returns>a descriptor for this method</returns>
Add a method to this class
Add a method to this class
public MethodRef AddMethod(string name, Type retType, Type[] pars) {
            System.Diagnostics.Debug.Assert(retType != null);
            MethodRef meth = (MethodRef)GetMethodDesc(name,pars);
            if (meth != null) DescriptorError(meth);
            meth = new MethodRef(this,name,retType,pars);
            methods.Add(meth);
            return meth;
        }
public MethodRef AddMethod ( string name , Type retType , Type [ ] pars ) { System . Diagnostics . Debug . Assert ( retType != null ) ; MethodRef meth = ( MethodRef ) GetMethodDesc ( name , pars ) ; if ( meth != null ) DescriptorError ( meth ) ; meth = new MethodRef ( this , name , retType , pars ) ; methods . Add ( meth ) ; return meth ; }
Add a method to this class
Add a method to this class
a descriptor for this method
a descriptor for this method
name
string
None
retType
Type
None
pars
Type[]
None