diff --git a/CSharp/Plugins/UniversalEditor.Essential/Collections/Generic/KeyValuePairList.cs b/CSharp/Plugins/UniversalEditor.Essential/Collections/Generic/KeyValuePairList.cs index fddfa693..e6ebac75 100644 --- a/CSharp/Plugins/UniversalEditor.Essential/Collections/Generic/KeyValuePairList.cs +++ b/CSharp/Plugins/UniversalEditor.Essential/Collections/Generic/KeyValuePairList.cs @@ -1,25 +1,22 @@ using System; +using System.Collections.Generic; + namespace UniversalEditor.Collections.Generic { - public class KeyValuePairList - : System.Collections.Generic.List> + public class KeyValuePairList : List> { + private Dictionary> valuesByKey = new Dictionary>(); - private System.Collections.Generic.Dictionary> valuesByKey = new System.Collections.Generic.Dictionary>(); - - public System.Collections.Generic.KeyValuePair Add (TKey key, TValue value) + public KeyValuePair Add(TKey key, TValue value) { - System.Collections.Generic.KeyValuePair item = new System.Collections.Generic.KeyValuePair (key, value); - base.Add (item); - valuesByKey.Add (key, item); + KeyValuePair item = new KeyValuePair(key, value); + base.Add(item); + valuesByKey.Add(key, item); return item; } - public System.Collections.Generic.KeyValuePair this[TKey key] + public KeyValuePair this[TKey key] { - get - { - return valuesByKey[key]; - } + get { return valuesByKey[key]; } } public bool Contains(TKey key) { @@ -39,5 +36,4 @@ namespace UniversalEditor.Collections.Generic valuesByKey.Remove(item.Key); } } -} - +} \ No newline at end of file