Exemple #1
0
 void ChildAdded(object sender, RehashableDictionary <YamlNode, YamlNode> .DictionaryEventArgs e)
 {
     e.Key.Changed   += KeyChanged;
     e.Value.Changed += ChildChanged;
     OnChanged();
     CheckDuplicatedKeys();
 }
Exemple #2
0
 public ValueCollection(RehashableDictionary <K, V> dictionary)
     : base(dictionary)
 {
 }
Exemple #3
0
 void DictionaryChanged(object sender, RehashableDictionary <K, V> .DictionaryEventArgs e)
 {
     Invalid = true;
 }
Exemple #4
0
 public KeysValuesBase(RehashableDictionary <K, V> dictionary)
 {
     Dictionary          = dictionary;
     Dictionary.Added   += DictionaryChanged;
     Dictionary.Removed += DictionaryChanged;
 }
Exemple #5
0
 public ItemsCollection(RehashableDictionary <K, V> dictionary)
     : base(dictionary)
 {
     this.list = new List <KeyValue>();
 }
Exemple #6
0
 public ItemsCollection(RehashableDictionary <K, V> dictionary, List <KeyValue> list)
     : base(dictionary)
 {
     this.list = list;
 }