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