diff --git a/ICD.Common.Utils/Collections/ScrollQueue.cs b/ICD.Common.Utils/Collections/ScrollQueue.cs index 455542a..b6a4f92 100644 --- a/ICD.Common.Utils/Collections/ScrollQueue.cs +++ b/ICD.Common.Utils/Collections/ScrollQueue.cs @@ -151,11 +151,11 @@ namespace ICD.Common.Utils.Collections return m_Collection.GetEnumerator(); } - void ICollection.CopyTo(Array myArr, int index) + void ICollection.CopyTo(Array array, int index) { foreach (TContents item in m_Collection) { - myArr.SetValue(item, index); + array.SetValue(item, index); index++; } } diff --git a/ICD.Common.Utils/Collections/WeakKeyDictionary.cs b/ICD.Common.Utils/Collections/WeakKeyDictionary.cs index 8498098..cf1a692 100644 --- a/ICD.Common.Utils/Collections/WeakKeyDictionary.cs +++ b/ICD.Common.Utils/Collections/WeakKeyDictionary.cs @@ -61,9 +61,9 @@ namespace ICD.Common.Utils.Collections m_Comparer = comparer; } - public int GetHashCode(WeakKeyReference weakKey) + public int GetHashCode(WeakKeyReference obj) { - return weakKey.HashCode; + return obj == null ? 0 : obj.HashCode; } // Note: There are actually 9 cases to handle here. diff --git a/ICD.Common.Utils/ReflectionUtils.cs b/ICD.Common.Utils/ReflectionUtils.cs index af806d5..f707b5b 100644 --- a/ICD.Common.Utils/ReflectionUtils.cs +++ b/ICD.Common.Utils/ReflectionUtils.cs @@ -178,7 +178,7 @@ namespace ICD.Common.Utils if (type == null) throw new ArgumentNullException("type"); - return (T)CreateInstance(type); + return (T)CreateInstance(type, new object[0]); } ///