src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Add a field to this class
/// </summary>
/// <param name="f">Descriptor for the field to be added</param>
Add a field to this class
Add a field to this class
public void AddField(FieldDef f) {
            FieldDef field = (FieldDef)FindField(f.Name());
            if (field != null)
                throw new DescriptorException("Field " + field.NameString());
            f.SetParent(this);
            fields.Add(f);
        }
public void AddField ( FieldDef f ) { FieldDef field = ( FieldDef ) FindField ( f . Name ( ) ) ; if ( field != null ) throw new DescriptorException ( " " + field . NameString ( ) ) ; f . SetParent ( this ) ; fields . Add ( f ) ; }
Add a field to this class
Add a field to this class
f
FieldDef
Descriptor for the field to be added
Descriptor for the field to be added