Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
EnumerableRowCollectionExtensions.cs
Go to the documentation of this file.
2using System.Linq;
3
4namespace System.Data;
5
7{
14
22
30
38
46
54
62
70
78
84
86 {
87 if (source != null && source.ElementType.Equals(typeof(TResult)))
88 {
90 }
92 return new EnumerableRowCollection<TResult>(enumerableRows, typeof(TResult).IsAssignableFrom(source.ElementType) && typeof(DataRow).IsAssignableFrom(typeof(TResult)), source.Table);
93 }
94}
static OrderedEnumerableRowCollection< TRow > OrderByDescending< TRow, TKey >(this EnumerableRowCollection< TRow > source, Func< TRow, TKey > keySelector)
static EnumerableRowCollection< S > Select< TRow, S >(this EnumerableRowCollection< TRow > source, Func< TRow, S > selector)
static EnumerableRowCollection< TResult > Cast< TResult >(this EnumerableRowCollection source)
static EnumerableRowCollection< TRow > Where< TRow >(this EnumerableRowCollection< TRow > source, Func< TRow, bool > predicate)
static OrderedEnumerableRowCollection< TRow > ThenByDescending< TRow, TKey >(this OrderedEnumerableRowCollection< TRow > source, Func< TRow, TKey > keySelector)
static OrderedEnumerableRowCollection< TRow > ThenBy< TRow, TKey >(this OrderedEnumerableRowCollection< TRow > source, Func< TRow, TKey > keySelector)
static OrderedEnumerableRowCollection< TRow > OrderBy< TRow, TKey >(this EnumerableRowCollection< TRow > source, Func< TRow, TKey > keySelector)