@@ -67,8 +67,8 @@ public static TSource Min<TSource>(this IQueryable<TSource> source, IComparer<TS
67
67
[ EditorBrowsable ( EditorBrowsableState . Never ) ]
68
68
public static TSource Min < TSource > ( IEnumerable < TSource > source , IComparer < TSource > comparer )
69
69
{
70
- #if NET6_0
71
- return Enumerable . Min ( source , comparer ) ;
70
+ #if REFERENCE_ASSEMBLY
71
+ return default ;
72
72
73
73
#else
74
74
return EnumerableEx . Min ( source , comparer ) ;
@@ -105,7 +105,11 @@ public static IList<TSource> MinBy<TSource, TKey>(this IQueryable<TSource> sourc
105
105
[ EditorBrowsable ( EditorBrowsableState . Never ) ]
106
106
public static IList < TSource > MinBy < TSource , TKey > ( IEnumerable < TSource > source , Func < TSource , TKey > keySelector )
107
107
{
108
+ #if REFERENCE_ASSEMBLY
109
+ return default ;
110
+ #else
108
111
return EnumerableEx . MinBy ( source , keySelector ) ;
112
+ #endif
109
113
}
110
114
#pragma warning restore 1591
111
115
@@ -142,11 +146,8 @@ public static IList<TSource> MinBy<TSource, TKey>(this IQueryable<TSource> sourc
142
146
[ EditorBrowsable ( EditorBrowsableState . Never ) ]
143
147
public static IList < TSource > MinBy < TSource , TKey > ( IEnumerable < TSource > source , Func < TSource , TKey > keySelector , IComparer < TKey > comparer )
144
148
{
145
- #if NET6_0
146
- return new List < TSource > ( )
147
- {
148
- Enumerable . MinBy ( source , keySelector , comparer )
149
- } ;
149
+ #if REFERENCE_ASSEMBLY
150
+ return default ;
150
151
#else
151
152
return EnumerableEx . MinBy ( source , keySelector , comparer ) ;
152
153
#endif
@@ -181,8 +182,8 @@ public static TSource Max<TSource>(this IQueryable<TSource> source, IComparer<TS
181
182
[ EditorBrowsable ( EditorBrowsableState . Never ) ]
182
183
public static TSource Max < TSource > ( IEnumerable < TSource > source , IComparer < TSource > comparer )
183
184
{
184
- #if NET6_0
185
- return Enumerable . Max ( source , comparer ) ;
185
+ #if REFERENCE_ASSEMBLY
186
+ return default ;
186
187
#else
187
188
return EnumerableEx . Max ( source , comparer ) ;
188
189
#endif
@@ -218,7 +219,11 @@ public static IList<TSource> MaxBy<TSource, TKey>(this IQueryable<TSource> sourc
218
219
[ EditorBrowsable ( EditorBrowsableState . Never ) ]
219
220
public static IList < TSource > MaxBy < TSource , TKey > ( IEnumerable < TSource > source , Func < TSource , TKey > keySelector )
220
221
{
222
+ #if REFERENCE_ASSEMBLY
223
+ return default ;
224
+ #else
221
225
return EnumerableEx . MaxBy ( source , keySelector ) ;
226
+ #endif
222
227
}
223
228
#pragma warning restore 1591
224
229
@@ -255,11 +260,8 @@ public static IList<TSource> MaxBy<TSource, TKey>(this IQueryable<TSource> sourc
255
260
[ EditorBrowsable ( EditorBrowsableState . Never ) ]
256
261
public static IList < TSource > MaxBy < TSource , TKey > ( IEnumerable < TSource > source , Func < TSource , TKey > keySelector , IComparer < TKey > comparer )
257
262
{
258
- #if NET6_0
259
- return new List < TSource >
260
- {
261
- Enumerable . MaxBy ( source , keySelector , comparer )
262
- } ;
263
+ #if REFERENCE_ASSEMBLY
264
+ return default ;
263
265
#else
264
266
return EnumerableEx . MaxBy ( source , keySelector , comparer ) ;
265
267
#endif
@@ -284,11 +286,7 @@ public static IQueryable<TResult> Share<TSource, TResult>(this IQueryable<TSourc
284
286
return source . Provider . CreateQuery < TResult > (
285
287
Expression . Call (
286
288
null ,
287
- #if CRIPPLED_REFLECTION
288
- InfoOf ( ( ) => QueryableEx . Share < TSource , TResult > ( default ( IQueryable < TSource > ) , default ( Expression < Func < IEnumerable < TSource > , IEnumerable < TResult > > > ) ) ) ,
289
- #else
290
289
( ( MethodInfo ) MethodInfo . GetCurrentMethod ( ) ) . MakeGenericMethod ( typeof ( TSource ) , typeof ( TResult ) ) ,
291
- #endif
292
290
source . Expression ,
293
291
selector
294
292
)
0 commit comments