Esempio n. 1
0
 public void AddBase(CompositeType baseType)
 {
     BaseType = baseType;
 }
Esempio n. 2
0
 internal Field(string name, int id, TypeBase type, IDictionary <string, object> attachedData, CompositeType containingType)
     : this(name, id, type, 1, 1, attachedData, containingType)
 {
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 public static IEnumerable <Field> GetAllFields(this CompositeType compositeType)
 {
     return(compositeType.BaseType != null
         ? compositeType.BaseType.GetAllFields().Concat(compositeType.Fields)
         : compositeType.Fields);
 }