wasSharp – Diff between revs 22 and 27

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 22 Rev 27
Line 39... Line 39...
39   39  
Line 40... Line 40...
40 public ICollection<V> Values => store.Values; 40 public ICollection<V> Values => store.Values;
41   41  
42 public void Add(KeyValuePair<K, V> item) 42 public void Add(KeyValuePair<K, V> item)
43 { 43 {
44 ((IDictionary<K, V>) store).Add(item); 44 ((IDictionary<K, V>)store).Add(item);
45 IsVirgin = false; 45 IsVirgin = false;
Line 46... Line 46...
46 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item)); 46 OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item));
Line 62... Line 62...
62 IsVirgin = false; 62 IsVirgin = false;
63 } 63 }
Line 64... Line 64...
64   64  
65 public bool Contains(KeyValuePair<K, V> item) 65 public bool Contains(KeyValuePair<K, V> item)
66 { 66 {
67 return ((IDictionary<K, V>) store).Contains(item); 67 return ((IDictionary<K, V>)store).Contains(item);
Line 68... Line 68...
68 } 68 }
69   69  
70 public bool ContainsKey(K key) 70 public bool ContainsKey(K key)
71 { 71 {
Line 72... Line 72...
72 return store.ContainsKey(key); 72 return store.ContainsKey(key);
73 } 73 }
74   74  
75 public void CopyTo(KeyValuePair<K, V>[] array, int arrayIndex) 75 public void CopyTo(KeyValuePair<K, V>[] array, int arrayIndex)
Line 76... Line 76...
76 { 76 {
77 ((IDictionary<K, V>) store).CopyTo(array, arrayIndex); 77 ((IDictionary<K, V>)store).CopyTo(array, arrayIndex);
78 } 78 }
79   79  
Line 80... Line 80...
80 public IEnumerator<KeyValuePair<K, V>> GetEnumerator() 80 public IEnumerator<KeyValuePair<K, V>> GetEnumerator()
81 { 81 {
82 return ((IDictionary<K, V>) store).GetEnumerator(); 82 return ((IDictionary<K, V>)store).GetEnumerator();
83 } 83 }
84   84  
85 public bool Remove(KeyValuePair<K, V> item) 85 public bool Remove(KeyValuePair<K, V> item)
86 { 86 {
87 var removed = ((IDictionary<K, V>) store).Remove(item); 87 var removed = ((IDictionary<K, V>)store).Remove(item);
Line 109... Line 109...
109 return store.TryGetValue(key, out value); 109 return store.TryGetValue(key, out value);
110 } 110 }
Line 111... Line 111...
111   111  
112 IEnumerator IEnumerable.GetEnumerator() 112 IEnumerator IEnumerable.GetEnumerator()
113 { 113 {
114 return ((IDictionary<K, V>) store).GetEnumerator(); 114 return ((IDictionary<K, V>)store).GetEnumerator();
Line 115... Line 115...
115 } 115 }
Line 116... Line 116...
116   116  
117 public event NotifyCollectionChangedEventHandler CollectionChanged; 117 public event NotifyCollectionChangedEventHandler CollectionChanged;
118   118  
119 private void OnCollectionChanged(NotifyCollectionChangedEventArgs args) 119 private void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
120 { 120 {
121 CollectionChanged?.Invoke(this, args); -  
122 } 121 CollectionChanged?.Invoke(this, args);
-   122 }