mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 05:05:05 +00:00
fix: Resolving warnings
This commit is contained in:
@@ -151,11 +151,11 @@ namespace ICD.Common.Utils.Collections
|
|||||||
return m_Collection.GetEnumerator();
|
return m_Collection.GetEnumerator();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ICollection.CopyTo(Array myArr, int index)
|
void ICollection.CopyTo(Array array, int index)
|
||||||
{
|
{
|
||||||
foreach (TContents item in m_Collection)
|
foreach (TContents item in m_Collection)
|
||||||
{
|
{
|
||||||
myArr.SetValue(item, index);
|
array.SetValue(item, index);
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,9 +61,9 @@ namespace ICD.Common.Utils.Collections
|
|||||||
m_Comparer = comparer;
|
m_Comparer = comparer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int GetHashCode(WeakKeyReference<T> weakKey)
|
public int GetHashCode(WeakKeyReference<T> obj)
|
||||||
{
|
{
|
||||||
return weakKey.HashCode;
|
return obj == null ? 0 : obj.HashCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Note: There are actually 9 cases to handle here.
|
// Note: There are actually 9 cases to handle here.
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ namespace ICD.Common.Utils
|
|||||||
if (type == null)
|
if (type == null)
|
||||||
throw new ArgumentNullException("type");
|
throw new ArgumentNullException("type");
|
||||||
|
|
||||||
return (T)CreateInstance(type);
|
return (T)CreateInstance(type, new object[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user