Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TypedTableBaseExtensions.cs
Go to the documentation of this file.
2
3namespace System.Data;
4
5public static class TypedTableBaseExtensions
6{
13
20
27
34
41
43 {
44 DataSetUtil.CheckArgumentNull(source, "source");
46 return source2.Select(selector);
47 }
48
54
56 {
57 if (index >= 0 && index < source.Rows.Count)
58 {
59 return (TRow)source.Rows[index];
60 }
61 return null;
62 }
63}
static EnumerableRowCollection< S > Select< TRow, S >(this TypedTableBase< TRow > source, Func< TRow, S > selector)
static ? TRow ElementAtOrDefault< TRow >(this TypedTableBase< TRow > source, int index)
static EnumerableRowCollection< TRow > Where< TRow >(this TypedTableBase< TRow > source, Func< TRow, bool > predicate)
static OrderedEnumerableRowCollection< TRow > OrderBy< TRow, TKey >(this TypedTableBase< TRow > source, Func< TRow, TKey > keySelector)
static OrderedEnumerableRowCollection< TRow > OrderByDescending< TRow, TKey >(this TypedTableBase< TRow > source, Func< TRow, TKey > keySelector)
static EnumerableRowCollection< TRow > AsEnumerable< TRow >(this TypedTableBase< TRow > source)