/// <summary> /// Add a field to this class /// </summary> /// <param name="fAtts">attributes for this field</param> /// <param name="name">field name</param> /// <param name="fType">field type</param> /// <returns>a descriptor for this new field</returns> public FieldDef AddField(FieldAttr fAtts, string name, Type fType) { FieldDef field = new FieldDef(fAtts,name,fType); fields.Add(field); return field; }
/// <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> public FieldDef AddField(string name, Type fType) { FieldDef field = new FieldDef(name,fType); fields.Add(field); return field; }