You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Linq/Enumerable.xml
+16-36Lines changed: 16 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -8257,18 +8257,13 @@ In Visual Basic query expression syntax, an `Aggregate Into Max()` clause transl
8257
8257
<param name="keySelector">A function to extract the key for each element.</param>
8258
8258
<summary>Returns the maximum value in a generic sequence according to a specified key selector function.</summary>
8259
8259
<returns>The value with the maximum key in the sequence.</returns>
8260
-
<remarks>
8261
-
<format type="text/markdown"><![CDATA[
8262
-
8263
-
## Remarks
8264
-
8265
-
If `TKey` is a reference type and the source sequence is empty or contains only values that are `null`, this method returns `null`.
8266
-
8267
-
]]></format>
8268
-
</remarks>
8260
+
<remarks><para>If the source sequence is empty and <typeparamref name="TSource" /> is a nullable type, this method returns <see langword="null" />. If the source sequence is empty and <typeparamref name="TSource" /> is a non-nullable struct, such as a primitive type, an <see cref="T:System.InvalidOperationException" /> is thrown.</para>
8261
+
<para>If the source sequence contains only values that are <see langword="null" />.</para></remarks>
8269
8262
<exception cref="T:System.ArgumentNullException">
8270
8263
<paramref name="source" /> is <see langword="null" />.</exception>
8271
8264
<exception cref="T:System.ArgumentException">No key extracted from <paramref name="source" /> implements the <see cref="T:System.IComparable" /> or <see cref="T:System.IComparable`1" /> interface.</exception>
<typeparamref name="TSource" /> is a primitive type and the source sequence is empty.</exception>
8272
8267
</Docs>
8273
8268
</Member>
8274
8269
<Member MemberName="MaxBy<TSource,TKey>">
@@ -8338,18 +8333,13 @@ If `TKey` is a reference type and the source sequence is empty or contains only
8338
8333
<param name="comparer">The <see cref="T:System.Collections.Generic.IComparer`1" /> to compare keys.</param>
8339
8334
<summary>Returns the maximum value in a generic sequence according to a specified key selector function and key comparer.</summary>
8340
8335
<returns>The value with the maximum key in the sequence.</returns>
8341
-
<remarks>
8342
-
<format type="text/markdown"><![CDATA[
8343
-
8344
-
## Remarks
8345
-
8346
-
If `TKey` is a reference type and the source sequence is empty or contains only values that are `null`, this method returns `null`.
8347
-
8348
-
]]></format>
8349
-
</remarks>
8336
+
<remarks><para>If the source sequence is empty and <typeparamref name="TSource" /> is a nullable type, this method returns <see langword="null" />. If the source sequence is empty and <typeparamref name="TSource" /> is a non-nullable struct, such as a primitive type, an <see cref="T:System.InvalidOperationException" /> is thrown.</para>
8337
+
<para>If the source sequence contains only values that are <see langword="null" />.</para></remarks>
8350
8338
<exception cref="T:System.ArgumentNullException">
8351
8339
<paramref name="source" /> is <see langword="null" />.</exception>
8352
8340
<exception cref="T:System.ArgumentException">No key extracted from <paramref name="source" /> implements the <see cref="T:System.IComparable" /> or <see cref="T:System.IComparable`1" /> interface.</exception>
<typeparamref name="TSource" /> is a primitive type and the source sequence is empty.</exception>
8353
8343
</Docs>
8354
8344
</Member>
8355
8345
<MemberGroup MemberName="Min">
@@ -10061,18 +10051,13 @@ In Visual Basic query expression syntax, an `Aggregate Into Min()` clause transl
10061
10051
<param name="keySelector">A function to extract the key for each element.</param>
10062
10052
<summary>Returns the minimum value in a generic sequence according to a specified key selector function.</summary>
10063
10053
<returns>The value with the minimum key in the sequence.</returns>
10064
-
<remarks>
10065
-
<format type="text/markdown"><![CDATA[
10066
-
10067
-
## Remarks
10068
-
10069
-
If `TKey` is a reference type and the source sequence is empty or contains only values that are `null`, this method returns `null`.
10070
-
10071
-
]]></format>
10072
-
</remarks>
10054
+
<remarks><para>If the source sequence is empty and <typeparamref name="TSource" /> is a nullable type, this method returns <see langword="null" />. If the source sequence is empty and <typeparamref name="TSource" /> is a non-nullable struct, such as a primitive type, an <see cref="T:System.InvalidOperationException" /> is thrown.</para>
10055
+
<para>If the source sequence contains only values that are <see langword="null" />.</para></remarks>
10073
10056
<exception cref="T:System.ArgumentNullException">
10074
10057
<paramref name="source" /> is <see langword="null" />.</exception>
10075
10058
<exception cref="T:System.ArgumentException">No key extracted from <paramref name="source" /> implements the <see cref="T:System.IComparable" /> or <see cref="T:System.IComparable`1" /> interface.</exception>
<typeparamref name="TSource" /> is a primitive type and the source sequence is empty.</exception>
10076
10061
</Docs>
10077
10062
</Member>
10078
10063
<Member MemberName="MinBy<TSource,TKey>">
@@ -10142,18 +10127,13 @@ If `TKey` is a reference type and the source sequence is empty or contains only
10142
10127
<param name="comparer">The <see cref="T:System.Collections.Generic.IComparer`1" /> to compare keys.</param>
10143
10128
<summary>Returns the minimum value in a generic sequence according to a specified key selector function and key comparer.</summary>
10144
10129
<returns>The value with the minimum key in the sequence.</returns>
10145
-
<remarks>
10146
-
<format type="text/markdown"><![CDATA[
10147
-
10148
-
## Remarks
10149
-
10150
-
If `TKey` is a reference type and the source sequence is empty or contains only values that are `null`, this method returns `null`.
10151
-
10152
-
]]></format>
10153
-
</remarks>
10130
+
<remarks><para>If the source sequence is empty and <typeparamref name="TSource" /> is a nullable type, this method returns <see langword="null" />. If the source sequence is empty and <typeparamref name="TSource" /> is a non-nullable struct, such as a primitive type, an <see cref="T:System.InvalidOperationException" /> is thrown.</para>
10131
+
<para>If the source sequence contains only values that are <see langword="null" />.</para></remarks>
10154
10132
<exception cref="T:System.ArgumentNullException">
10155
10133
<paramref name="source" /> is <see langword="null" />.</exception>
10156
10134
<exception cref="T:System.ArgumentException">No key extracted from <paramref name="source" /> implements the <see cref="T:System.IComparable" /> or <see cref="T:System.IComparable`1" /> interface.</exception>
0 commit comments