public void AddDefault <TD>(SchemaRootKey key) { SchemaFieldDef <TD, SchemaRootKey> f = rootFields.GetField <TD>(key); rootDict.Add(key, new SchemaRootDataField <TD>(f.Value, f)); }
public void SetValue <TD>(SchemaRootKey key, TD value) { ((SchemaRootDataField <TD>)rootDict[key]).Value = value; }
public void Add <TD>(SchemaRootKey key, TD value) { rootDict.Add(key, new SchemaRootDataField <TD>(value, rootFields.GetField <TD>(key))); }
public ASchemaDataFieldDef <SchemaRootKey> this[SchemaRootKey key] => rootDict[key];
public TD GetValue <TD>(SchemaRootKey key) { return(((SchemaRootDataField <TD>)rootDict[key]).Value); }
public SchemaFieldRoot(SchemaRootKey sequence, string name, string desc, TD val, RevitUnitType unitType = RevitUnitType.UT_UNDEFINED, string guid = "") : base(sequence, name, desc, val, unitType, guid) { }
public void SetValue <TD>(SchemaRootKey key, TD value) { ((SchemaFieldRoot <TD>)Fields[key]).Value = value; }
public TD GetValue <TD>(SchemaRootKey key) { return(((SchemaFieldRoot <TD>)Fields[key]).Value); }
public SchemaFieldRoot <TD> GetField <TD>(SchemaRootKey key) { return((SchemaFieldRoot <TD>)Fields[key]); }
public ISchemaFieldDef <SchemaRootKey> this[SchemaRootKey key] => Fields[key];