src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Add a field to this class
/// </summary>
/// <param name="name">field name</param>
/// <param name="fType">field type</param>
/// <returns>a descriptor for this field</returns>
Add a field to this class
Add a field to this class
public FieldRef AddField(string name, Type fType) {
            FieldRef fld = (FieldRef)FindField(name);
            if (fld != null) DescriptorError(fld);
            fld = new FieldRef(this,name,fType);
            fields.Add(fld);
            return fld;
        }
public FieldRef AddField ( string name , Type fType ) { FieldRef fld = ( FieldRef ) FindField ( name ) ; if ( fld != null ) DescriptorError ( fld ) ; fld = new FieldRef ( this , name , fType ) ; fields . Add ( fld ) ; return fld ; }
Add a field to this class
Add a field to this class
a descriptor for this field
a descriptor for this field
name
string
None
fType
Type
None