Axiom.Math.Collections.Vector3List.ValidateIndex C# (CSharp) Method

ValidateIndex() private method

/// is less than zero /// -or- /// is equal to or greater than . ///
private ValidateIndex ( int i, bool allowEqualEnd ) : void
i int
allowEqualEnd bool
return void
        private void ValidateIndex( int i, bool allowEqualEnd )
        {
            int max = ( allowEqualEnd ) ? ( m_count ) : ( m_count - 1 );
            if ( i < 0 || i > max )
#if !(XBOX || XBOX360 || SILVERLIGHT )
                throw new System.ArgumentOutOfRangeException( "Index was out of range.  Must be non-negative and less than the size of the collection.", (object)i, "Specified argument was out of the range of valid values." );
#else
                throw new System.ArgumentOutOfRangeException("Index was out of range.  Must be non-negative and less than the size of the collection.", "Specified argument was out of the range of valid values.");
#endif
        }

Same methods

Vector3List::ValidateIndex ( int i ) : void