1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the MIT license.
3+ // See the LICENSE file in the project root for more information.
4+
5+ #if MOBILE || XAMMAC_4_5
6+ namespace System . Data
7+ {
8+ public static partial class DataRowComparer
9+ {
10+ public static System . Data . DataRowComparer < System . Data . DataRow > Default { get => throw new PlatformNotSupportedException ( ) ; }
11+ }
12+ public sealed partial class DataRowComparer < TRow > : System . Collections . Generic . IEqualityComparer < TRow > where TRow : System . Data . DataRow
13+ {
14+ internal DataRowComparer ( ) { }
15+ public static System . Data . DataRowComparer < TRow > Default { get => throw new PlatformNotSupportedException ( ) ; }
16+ public bool Equals ( TRow leftRow , TRow rightRow ) => throw new PlatformNotSupportedException ( ) ;
17+ public int GetHashCode ( TRow row ) => throw new PlatformNotSupportedException ( ) ;
18+ }
19+ public static partial class DataRowExtensions
20+ {
21+ public static T Field < T > ( this System . Data . DataRow row , System . Data . DataColumn column ) => throw new PlatformNotSupportedException ( ) ;
22+ public static T Field < T > ( this System . Data . DataRow row , System . Data . DataColumn column , System . Data . DataRowVersion version ) => throw new PlatformNotSupportedException ( ) ;
23+ public static T Field < T > ( this System . Data . DataRow row , int columnIndex ) => throw new PlatformNotSupportedException ( ) ;
24+ public static T Field < T > ( this System . Data . DataRow row , int columnIndex , System . Data . DataRowVersion version ) => throw new PlatformNotSupportedException ( ) ;
25+ public static T Field < T > ( this System . Data . DataRow row , string columnName ) => throw new PlatformNotSupportedException ( ) ;
26+ public static T Field < T > ( this System . Data . DataRow row , string columnName , System . Data . DataRowVersion version ) => throw new PlatformNotSupportedException ( ) ;
27+ public static void SetField < T > ( this System . Data . DataRow row , System . Data . DataColumn column , T value ) { }
28+ public static void SetField < T > ( this System . Data . DataRow row , int columnIndex , T value ) { }
29+ public static void SetField < T > ( this System . Data . DataRow row , string columnName , T value ) { }
30+ }
31+ public static partial class DataTableExtensions
32+ {
33+ public static System . Data . DataView AsDataView ( this System . Data . DataTable table ) => throw new PlatformNotSupportedException ( ) ;
34+ public static System . Data . DataView AsDataView < T > ( this System . Data . EnumerableRowCollection < T > source ) where T : System . Data . DataRow => throw new PlatformNotSupportedException ( ) ;
35+ public static System . Data . EnumerableRowCollection < System . Data . DataRow > AsEnumerable ( this System . Data . DataTable source ) => throw new PlatformNotSupportedException ( ) ;
36+ public static System . Data . DataTable CopyToDataTable < T > ( this System . Collections . Generic . IEnumerable < T > source ) where T : System . Data . DataRow => throw new PlatformNotSupportedException ( ) ;
37+ public static void CopyToDataTable < T > ( this System . Collections . Generic . IEnumerable < T > source , System . Data . DataTable table , System . Data . LoadOption options ) where T : System . Data . DataRow { }
38+ public static void CopyToDataTable < T > ( this System . Collections . Generic . IEnumerable < T > source , System . Data . DataTable table , System . Data . LoadOption options , System . Data . FillErrorEventHandler errorHandler ) where T : System . Data . DataRow { }
39+ }
40+ public abstract partial class EnumerableRowCollection : System . Collections . IEnumerable
41+ {
42+ internal EnumerableRowCollection ( ) { }
43+ System . Collections . IEnumerator System . Collections . IEnumerable . GetEnumerator ( ) => throw new PlatformNotSupportedException ( ) ;
44+ }
45+ public static partial class EnumerableRowCollectionExtensions
46+ {
47+ public static System . Data . EnumerableRowCollection < TResult > Cast < TResult > ( this System . Data . EnumerableRowCollection source ) => throw new PlatformNotSupportedException ( ) ;
48+ public static System . Data . OrderedEnumerableRowCollection < TRow > OrderByDescending < TRow , TKey > ( this System . Data . EnumerableRowCollection < TRow > source , System . Func < TRow , TKey > keySelector ) => throw new PlatformNotSupportedException ( ) ;
49+ public static System . Data . OrderedEnumerableRowCollection < TRow > OrderByDescending < TRow , TKey > ( this System . Data . EnumerableRowCollection < TRow > source , System . Func < TRow , TKey > keySelector , System . Collections . Generic . IComparer < TKey > comparer ) => throw new PlatformNotSupportedException ( ) ;
50+ public static System . Data . OrderedEnumerableRowCollection < TRow > OrderBy < TRow , TKey > ( this System . Data . EnumerableRowCollection < TRow > source , System . Func < TRow , TKey > keySelector ) => throw new PlatformNotSupportedException ( ) ;
51+ public static System . Data . OrderedEnumerableRowCollection < TRow > OrderBy < TRow , TKey > ( this System . Data . EnumerableRowCollection < TRow > source , System . Func < TRow , TKey > keySelector , System . Collections . Generic . IComparer < TKey > comparer ) => throw new PlatformNotSupportedException ( ) ;
52+ public static System . Data . EnumerableRowCollection < S > Select < TRow , S > ( this System . Data . EnumerableRowCollection < TRow > source , System . Func < TRow , S > selector ) => throw new PlatformNotSupportedException ( ) ;
53+ public static System . Data . OrderedEnumerableRowCollection < TRow > ThenByDescending < TRow , TKey > ( this System . Data . OrderedEnumerableRowCollection < TRow > source , System . Func < TRow , TKey > keySelector ) => throw new PlatformNotSupportedException ( ) ;
54+ public static System . Data . OrderedEnumerableRowCollection < TRow > ThenByDescending < TRow , TKey > ( this System . Data . OrderedEnumerableRowCollection < TRow > source , System . Func < TRow , TKey > keySelector , System . Collections . Generic . IComparer < TKey > comparer ) => throw new PlatformNotSupportedException ( ) ;
55+ public static System . Data . OrderedEnumerableRowCollection < TRow > ThenBy < TRow , TKey > ( this System . Data . OrderedEnumerableRowCollection < TRow > source , System . Func < TRow , TKey > keySelector ) => throw new PlatformNotSupportedException ( ) ;
56+ public static System . Data . OrderedEnumerableRowCollection < TRow > ThenBy < TRow , TKey > ( this System . Data . OrderedEnumerableRowCollection < TRow > source , System . Func < TRow , TKey > keySelector , System . Collections . Generic . IComparer < TKey > comparer ) => throw new PlatformNotSupportedException ( ) ;
57+ public static System . Data . EnumerableRowCollection < TRow > Where < TRow > ( this System . Data . EnumerableRowCollection < TRow > source , System . Func < TRow , bool > predicate ) => throw new PlatformNotSupportedException ( ) ;
58+ }
59+ public partial class EnumerableRowCollection < TRow > : System . Data . EnumerableRowCollection , System . Collections . Generic . IEnumerable < TRow > , System . Collections . IEnumerable
60+ {
61+ internal EnumerableRowCollection ( ) { }
62+ public System . Collections . Generic . IEnumerator < TRow > GetEnumerator ( ) => throw new PlatformNotSupportedException ( ) ;
63+ System . Collections . IEnumerator System . Collections . IEnumerable . GetEnumerator ( ) => throw new PlatformNotSupportedException ( ) ;
64+ }
65+ public sealed partial class OrderedEnumerableRowCollection < TRow > : System . Data . EnumerableRowCollection < TRow >
66+ {
67+ internal OrderedEnumerableRowCollection ( ) { }
68+ }
69+ public static partial class TypedTableBaseExtensions
70+ {
71+ public static System . Data . EnumerableRowCollection < TRow > AsEnumerable < TRow > ( this System . Data . TypedTableBase < TRow > source ) where TRow : System . Data . DataRow => throw new PlatformNotSupportedException ( ) ;
72+ public static TRow ElementAtOrDefault < TRow > ( this System . Data . TypedTableBase < TRow > source , int index ) where TRow : System . Data . DataRow => throw new PlatformNotSupportedException ( ) ;
73+ public static System . Data . OrderedEnumerableRowCollection < TRow > OrderByDescending < TRow , TKey > ( this System . Data . TypedTableBase < TRow > source , System . Func < TRow , TKey > keySelector ) where TRow : System . Data . DataRow => throw new PlatformNotSupportedException ( ) ;
74+ public static System . Data . OrderedEnumerableRowCollection < TRow > OrderByDescending < TRow , TKey > ( this System . Data . TypedTableBase < TRow > source , System . Func < TRow , TKey > keySelector , System . Collections . Generic . IComparer < TKey > comparer ) where TRow : System . Data . DataRow => throw new PlatformNotSupportedException ( ) ;
75+ public static System . Data . OrderedEnumerableRowCollection < TRow > OrderBy < TRow , TKey > ( this System . Data . TypedTableBase < TRow > source , System . Func < TRow , TKey > keySelector ) where TRow : System . Data . DataRow => throw new PlatformNotSupportedException ( ) ;
76+ public static System . Data . OrderedEnumerableRowCollection < TRow > OrderBy < TRow , TKey > ( this System . Data . TypedTableBase < TRow > source , System . Func < TRow , TKey > keySelector , System . Collections . Generic . IComparer < TKey > comparer ) where TRow : System . Data . DataRow => throw new PlatformNotSupportedException ( ) ;
77+ public static System . Data . EnumerableRowCollection < S > Select < TRow , S > ( this System . Data . TypedTableBase < TRow > source , System . Func < TRow , S > selector ) where TRow : System . Data . DataRow => throw new PlatformNotSupportedException ( ) ;
78+ public static System . Data . EnumerableRowCollection < TRow > Where < TRow > ( this System . Data . TypedTableBase < TRow > source , System . Func < TRow , bool > predicate ) where TRow : System . Data . DataRow => throw new PlatformNotSupportedException ( ) ;
79+ }
80+ public abstract partial class TypedTableBase < T > : System . Data . DataTable , System . Collections . Generic . IEnumerable < T > , System . Collections . IEnumerable where T : System . Data . DataRow
81+ {
82+ protected TypedTableBase ( ) { }
83+ protected TypedTableBase ( System . Runtime . Serialization . SerializationInfo info , System . Runtime . Serialization . StreamingContext context ) { }
84+ public System . Data . EnumerableRowCollection < TResult > Cast < TResult > ( ) => throw new PlatformNotSupportedException ( ) ;
85+ public System . Collections . Generic . IEnumerator < T > GetEnumerator ( ) => throw new PlatformNotSupportedException ( ) ;
86+ System . Collections . IEnumerator System . Collections . IEnumerable . GetEnumerator ( ) => throw new PlatformNotSupportedException ( ) ;
87+ }
88+ }
89+ #endif
0 commit comments