PERWAPI.ClassDef.AddField C# (CSharp) Метод

AddField() публичный Метод

Add a field to this class
public AddField ( FieldAttr fAtts, string name, Type fType ) : FieldDef
fAtts FieldAttr attributes for this field
name string field name
fType Type field type
Результат FieldDef
        public FieldDef AddField(FieldAttr fAtts, string name, Type fType)
        {
            FieldDef field = AddField(name,fType);
            field.SetFieldAttr(fAtts);
            return field;
        }

Same methods

ClassDef::AddField ( string name, Type fType ) : FieldDef
ClassDef::AddField ( FieldDef f ) : void

Usage Example

Пример #1
0
 internal static FieldDef AddField(ClassDef ParentClass, FieldAttr attr, string fieldName, PERWAPI.Type fieldType) {
     return ParentClass.AddField(attr, fieldName, fieldType);
 }