src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Add a method to this class
/// </summary>
/// <param name="meth">Descriptor for the method to be added</param>
Add a method to this class
Add a method to this class
public void AddMethod(MethodDef meth) {
            MethodDef m = (MethodDef)GetMethodDesc(meth.Name(),meth.GetParTypes());
            if (m != null)
                throw new DescriptorException("Method " + m.NameString());
            methods.Add(meth);
            meth.SetParent(this);
        }
public void AddMethod ( MethodDef meth ) { MethodDef m = ( MethodDef ) GetMethodDesc ( meth . Name ( ) , meth . GetParTypes ( ) ) ; if ( m != null ) throw new DescriptorException ( " " + m . NameString ( ) ) ; methods . Add ( meth ) ; meth . SetParent ( this ) ; }
Add a method to this class
Add a method to this class
meth
MethodDef
Descriptor for the method to be added
Descriptor for the method to be added