Example #1
0
 internal FacetProperty(FacetPropertyDefinition Definition, string ValueAsString)
 {
     thisDefinition = Definition;
     try
     {
         thisValue = Activator.CreateInstance(Definition.Datatype) as AnyType;
         thisValue.ValueAsString = ValueAsString;
     }
     catch (Exception e)
     {
         throw new NotSupportedException("INTERNAL ERROR: CreateInstance error in FacetProperty construction", e);
     }
 }
Example #2
0
 internal void AddFacetPropertyDefinition(FacetPropertyDefinition NewFacetPropertyDefinition)
 {
     this.PropertyDefinitions.Add(NewFacetPropertyDefinition);
 }
Example #3
0
 internal void AddFacetProperty(FacetPropertyDefinition Definition, string Value)
 {
     this.Properties.Add(new FacetProperty(Definition, Value));
 }