@@ -67,8 +67,8 @@ public static TSource Min<TSource>(this IQueryable<TSource> source, IComparer<TS
6767        [ EditorBrowsable ( EditorBrowsableState . Never ) ] 
6868        public  static TSource  Min < TSource > ( IEnumerable < TSource >  source ,  IComparer < TSource >  comparer ) 
6969        { 
70- #if NET6_0 
71-             return  Enumerable . Min ( source ,   comparer ) ; 
70+ #if REFERENCE_ASSEMBLY 
71+             return  default ; 
7272
7373#else
7474            return  EnumerableEx . Min ( source ,  comparer ) ; 
@@ -105,7 +105,11 @@ public static IList<TSource> MinBy<TSource, TKey>(this IQueryable<TSource> sourc
105105        [ EditorBrowsable ( EditorBrowsableState . Never ) ] 
106106        public  static IList < TSource >  MinBy < TSource ,  TKey > ( IEnumerable < TSource >  source ,  Func < TSource ,  TKey >  keySelector ) 
107107        { 
108+ #if REFERENCE_ASSEMBLY 
109+             return  default ; 
110+ #else
108111            return  EnumerableEx . MinBy ( source ,  keySelector ) ; 
112+ #endif
109113        } 
110114#pragma warning restore 1591 
111115
@@ -142,11 +146,8 @@ public static IList<TSource> MinBy<TSource, TKey>(this IQueryable<TSource> sourc
142146        [ EditorBrowsable ( EditorBrowsableState . Never ) ] 
143147        public  static IList < TSource >  MinBy < TSource ,  TKey > ( IEnumerable < TSource >  source ,  Func < TSource ,  TKey >  keySelector ,  IComparer < TKey >  comparer ) 
144148        { 
145- #if NET6_0 
146-             return  new  List < TSource > ( ) 
147-             { 
148-                 Enumerable . MinBy ( source ,  keySelector ,  comparer ) 
149-             } ; 
149+ #if REFERENCE_ASSEMBLY 
150+             return  default ; 
150151#else
151152            return  EnumerableEx . MinBy ( source ,  keySelector ,  comparer ) ; 
152153#endif
@@ -181,8 +182,8 @@ public static TSource Max<TSource>(this IQueryable<TSource> source, IComparer<TS
181182        [ EditorBrowsable ( EditorBrowsableState . Never ) ] 
182183        public  static TSource  Max < TSource > ( IEnumerable < TSource >  source ,  IComparer < TSource >  comparer ) 
183184        { 
184- #if NET6_0 
185-             return  Enumerable . Max ( source ,   comparer ) ; 
185+ #if REFERENCE_ASSEMBLY 
186+             return  default ; 
186187#else
187188            return  EnumerableEx . Max ( source ,  comparer ) ; 
188189#endif
@@ -218,7 +219,11 @@ public static IList<TSource> MaxBy<TSource, TKey>(this IQueryable<TSource> sourc
218219        [ EditorBrowsable ( EditorBrowsableState . Never ) ] 
219220        public  static IList < TSource >  MaxBy < TSource ,  TKey > ( IEnumerable < TSource >  source ,  Func < TSource ,  TKey >  keySelector ) 
220221        { 
222+ #if REFERENCE_ASSEMBLY 
223+             return  default ; 
224+ #else
221225            return  EnumerableEx . MaxBy ( source ,  keySelector ) ; 
226+ #endif
222227        } 
223228#pragma warning restore 1591 
224229
@@ -255,11 +260,8 @@ public static IList<TSource> MaxBy<TSource, TKey>(this IQueryable<TSource> sourc
255260        [ EditorBrowsable ( EditorBrowsableState . Never ) ] 
256261        public  static IList < TSource >  MaxBy < TSource ,  TKey > ( IEnumerable < TSource >  source ,  Func < TSource ,  TKey >  keySelector ,  IComparer < TKey >  comparer ) 
257262        { 
258- #if NET6_0 
259-             return  new  List < TSource > 
260-             { 
261-                 Enumerable . MaxBy ( source ,  keySelector ,  comparer ) 
262-             } ; 
263+ #if REFERENCE_ASSEMBLY 
264+             return  default ; 
263265#else
264266            return  EnumerableEx . MaxBy ( source ,  keySelector ,  comparer ) ; 
265267#endif
@@ -284,11 +286,7 @@ public static IQueryable<TResult> Share<TSource, TResult>(this IQueryable<TSourc
284286            return  source . Provider . CreateQuery < TResult > ( 
285287                Expression . Call ( 
286288                    null , 
287- #if CRIPPLED_REFLECTION 
288-                     InfoOf ( ( )  =>  QueryableEx . Share < TSource ,  TResult > ( default ( IQueryable < TSource > ) ,  default ( Expression < Func < IEnumerable < TSource > ,  IEnumerable < TResult > > > ) ) ) , 
289- #else
290289                    ( ( MethodInfo ) MethodInfo . GetCurrentMethod ( ) ) . MakeGenericMethod ( typeof ( TSource ) ,  typeof ( TResult ) ) , 
291- #endif
292290                    source . Expression , 
293291                    selector 
294292                ) 
0 commit comments