trunk/src/LythumOSL.Core/Data/LythumDataTable.cs
/// <summary>
/// Call DataTable select method corresponding to valid parameters
/// </summary>
/// <param name="table"></param>
/// <param name="filter"></param>
/// <param name="sort"></param>
/// <returns></returns>
Call DataTable select method corresponding to valid parameters
Call DataTable select method corresponding to valid parameters
public static DataRow[] Select (DataTable table, string filter, string sort)
		{
			Validation.RequireValid (table, "table");
			if (!string.IsNullOrEmpty (filter) && !string.IsNullOrEmpty (sort))
			{
				return table.Select (filter, sort);
			}
			else if (!string.IsNullOrEmpty (filter))
			{
				return table.Select (filter);
			}
			else
			{
				return table.Select ();
			}
		}
public static DataRow [ ] Select ( DataTable table , string filter , string sort ) { Validation . RequireValid ( table , " " ) ; if ( ! string . IsNullOrEmpty ( filter ) && ! string . IsNullOrEmpty ( sort ) ) { return table . Select ( filter , sort ) ; } else if ( ! string . IsNullOrEmpty ( filter ) ) { return table . Select ( filter ) ; } else { return table . Select ( ) ; } }
Call DataTable select method corresponding to valid parameters
Call DataTable select method corresponding to valid parameters
None
table
DataTable
None
filter
string
None
sort
string
None