Source/NFX/DataAccess/CRUD/RowsetBase.cs
/// <summary>
/// Provides rowsearching. Override to do binary search in sorted rowsets
/// </summary>
/// <param name="row">A row to search for</param>
/// <param name="index">An index where search collapsed without finding the match. Used for sorted insertions</param>
Provides rowsearching. Override to do binary search in sorted rowsets
Provides rowsearching . Override to do binary search in sorted rowsets
protected virtual int SearchForRow(Row row, out int index)
           {
              for(int i=0; i<m_List.Count; i++)
              {
                if (m_List[i].Equals(row))
                {
                     index = i;
                     return i;
                }
              }
              index = m_List.Count;
              return -1;
           }
protected virtual int SearchForRow ( Row row , out int index ) { for ( int i = 0 ; i < m_List . Count ; i ++ ) { if ( m_List [ i ] . Equals ( row ) ) { index = i ; return i ; } } index = m_List . Count ; return - 1 ; }
Provides rowsearching.
Provides rowsearching .
row
Row
A row to search for
A row to search for
int
out
index
An index where search collapsed without finding the match. Used for sorted insertions
An index where search collapsed without finding the match . Used for sorted insertions