mirror of
https://github.com/lifegpc/GARbro.git
synced 2026-06-06 05:28:49 +08:00
(CowArray.IndexOf): fixed.
This commit is contained in:
@@ -70,12 +70,15 @@ namespace GameRes
|
|||||||
|
|
||||||
public int IndexOf (T item)
|
public int IndexOf (T item)
|
||||||
{
|
{
|
||||||
return Array.IndexOf<T> (m_source, item, m_offset, m_count);
|
int i = Array.IndexOf<T> (m_source, item, m_offset, m_count);
|
||||||
|
if (-1 == i)
|
||||||
|
return i;
|
||||||
|
return i - m_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool Contains (T item)
|
public bool Contains (T item)
|
||||||
{
|
{
|
||||||
return IndexOf (item) != -1;
|
return Array.IndexOf<T> (m_source, item, m_offset, m_count) != -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CopyTo (T[] arr, int dst)
|
public void CopyTo (T[] arr, int dst)
|
||||||
|
|||||||
Reference in New Issue
Block a user