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 new field</returns>
Add a field to this class
Add a field to this class
public FieldDef AddField(string name, Type fType) {
            FieldDef field = (FieldDef)FindField(name);
            if (field != null)
                throw new DescriptorException("Field " + field.NameString());
            field = new FieldDef(name,fType,this);
            fields.Add(field);
            return field;
        }
public FieldDef AddField ( string name , Type fType ) { FieldDef field = ( FieldDef ) FindField ( name ) ; if ( field != null ) throw new DescriptorException ( " " + field . NameString ( ) ) ; field = new FieldDef ( name , fType , this ) ; fields . Add ( field ) ; return field ; }
Add a field to this class
Add a field to this class
a descriptor for this new field
a descriptor for this new field
name
string
None
fType
Type
None