System.Collections.ArrayList.RangedArrayList.LastIndexOf C# (CSharp) Method

LastIndexOf() public method

public LastIndexOf ( object value, int startIndex, int count ) : int
value object
startIndex int
count int
return int
			public override int LastIndexOf(object value, int startIndex, int count) 
			{
				if (startIndex < 0) 
				{
					ThrowNewArgumentOutOfRangeException ("startIndex", startIndex,	"< 0");
				}

				if (count < 0) 
				{
					ThrowNewArgumentOutOfRangeException ("count", count, "count is negative.");
				}

				int retval = m_InnerArrayList.LastIndexOf(value, m_InnerIndex + startIndex, count);

				if (retval == -1) 
				{
					return -1;
				}
				else 
				{
					return retval - m_InnerIndex;
				}
			}

Same methods

ArrayList.RangedArrayList::LastIndexOf ( object value ) : int
ArrayList.RangedArrayList::LastIndexOf ( object value, int startIndex ) : int