Core/Misc: Some cleanups

This commit is contained in:
hondacrx
2018-03-05 12:13:45 -05:00
parent 3fc07b8b37
commit 7de76148b6
9 changed files with 58 additions and 122 deletions
+4 -4
View File
@@ -119,7 +119,7 @@ namespace System.Collections.Generic
public List<TValue> LookupByKey(TKey key)
{
if (_interalStorage.ContainsKey(key))
return _interalStorage[key].ToList();
return _interalStorage[key];
return new List<TValue>();
}
@@ -128,7 +128,7 @@ namespace System.Collections.Generic
{
TKey newkey = (TKey)Convert.ChangeType(key, typeof(TKey));
if (_interalStorage.ContainsKey(newkey))
return _interalStorage[newkey].ToList();
return _interalStorage[newkey];
return new List<TValue>();
}
@@ -363,7 +363,7 @@ namespace System.Collections.Generic
public List<TValue> LookupByKey(TKey key)
{
if (_interalStorage.ContainsKey(key))
return _interalStorage[key].ToList();
return _interalStorage[key];
return new List<TValue>();
}
@@ -372,7 +372,7 @@ namespace System.Collections.Generic
{
TKey newkey = (TKey)Convert.ChangeType(key, typeof(TKey));
if (_interalStorage.ContainsKey(newkey))
return _interalStorage[newkey].ToList();
return _interalStorage[newkey];
return new List<TValue>();
}