public void AddBase(CompositeType baseType) { BaseType = baseType; }
internal Field(string name, int id, TypeBase type, IDictionary <string, object> attachedData, CompositeType containingType) : this(name, id, type, 1, 1, attachedData, containingType) { }
internal Field(string name, int id, TypeBase type, int minOccur, int maxOccur, IDictionary <string, object> attachedData, CompositeType containingType) { Type = type; Name = name; Id = id; MinOccur = minOccur; MaxOccur = maxOccur; AttachedData = attachedData; ContainingType = containingType; }
public static IEnumerable <Field> GetAllFields(this CompositeType compositeType) { return(compositeType.BaseType != null ? compositeType.BaseType.GetAllFields().Concat(compositeType.Fields) : compositeType.Fields); }