public PatriciaTrie() { var rootNode = new Node <T>(); var nodeRetriever = new NodeRetriever <T>(rootNode); _keyAdder = new KeyAdder <T>(rootNode); _keyRemover = new KeyRemover <T>(nodeRetriever, rootNode); _valuesGetter = new ValuesGetter <T>(nodeRetriever); }
public IDictionaryPropertyEditor() { this.Hints |= HintFlags.HasButton | HintFlags.ButtonEnabled; this.dictKeySetter = DefaultPropertySetter; this.dictKeyAdder = DefaultKeyAdder; this.dictKeyRemover = DefaultKeyRemover; this.offsetEditor = new NumericPropertyEditor(); this.offsetEditor.EditedType = typeof(int); this.offsetEditor.Minimum = 0; this.offsetEditor.PropertyName = "Offset"; this.offsetEditor.Getter = this.OffsetValueGetter; this.offsetEditor.Setter = this.OffsetValueSetter; this.offsetEditor.ValueMutable = true; }