From 599e4e8c4b63619cbbd8f3e525c91e8fe7a5812a Mon Sep 17 00:00:00 2001 From: alcexhim Date: Fri, 14 Nov 2014 08:25:10 -0500 Subject: [PATCH] Neatened some stuff up, but it looks like this isn't used anywhere anymore --- .../Collections/Generic/KeyValuePairList.cs | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) 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