internal AnnotationField(AnnotationFieldSet set, string name, AnnotationFieldType type) : base("AnnotationField") { _set = set; _name = name; _type = type; }
public IAnnotationField CreateAnnotationField(string fieldName, AnnotationFieldType type) { if (_fields.Contains(fieldName)) { throw new ArgumentException("Field " + fieldName + " already exists!"); } AnnotationField field = new AnnotationField(this, fieldName, type); _fields.Add(field); return(field); }