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); } }
internal void AddFacetPropertyDefinition(FacetPropertyDefinition NewFacetPropertyDefinition) { this.PropertyDefinitions.Add(NewFacetPropertyDefinition); }
internal void AddFacetProperty(FacetPropertyDefinition Definition, string Value) { this.Properties.Add(new FacetProperty(Definition, Value)); }