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.Buffers/ReadOnlySpanAction`2.xml
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -32,11 +32,11 @@
32
32
<ReturnType>System.Void</ReturnType>
33
33
</ReturnValue>
34
34
<Docs>
35
-
<typeparamname="T">To be added.</typeparam>
36
-
<typeparamname="TArg">To be added.</typeparam>
37
-
<paramname="span">To be added.</param>
38
-
<paramname="arg">To be added.</param>
39
-
<summary>To be added.</summary>
35
+
<typeparamname="T">The type of the objects in the read-only span.</typeparam>
36
+
<typeparamname="TArg">The type of the object that represents the state.</typeparam>
37
+
<paramname="span">A read-only span of objects of type <typeparamrefname="T" />.</param>
38
+
<paramname="arg">A state object of type <typeparamrefname="TArg" />.</param>
39
+
<summary>Encapsulates a method that receives a read-only span of objects of type <typeparamrefname="T" /> and a state object of type <typeparamrefname="TArg" />.</summary>
Copy file name to clipboardExpand all lines: xml/System.Buffers/SpanAction`2.xml
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -32,11 +32,11 @@
32
32
<ReturnType>System.Void</ReturnType>
33
33
</ReturnValue>
34
34
<Docs>
35
-
<typeparamname="T">To be added.</typeparam>
36
-
<typeparamname="TArg">To be added.</typeparam>
37
-
<paramname="span">To be added.</param>
38
-
<paramname="arg">To be added.</param>
39
-
<summary>To be added.</summary>
35
+
<typeparamname="T">The type of the objects in the span.</typeparam>
36
+
<typeparamname="TArg">The type of the object that represents the state.</typeparam>
37
+
<paramname="span">A span of objects of type <typeparamrefname="T" />.</param>
38
+
<paramname="arg">A state object of type <typeparamrefname="TArg" />.</param>
39
+
<summary>Encapsulates a method that receives a span of objects of type <typeparamrefname="T" /> and a state object of type <typeparamrefname="TArg" />.</summary>
The following example adds some names to a `List<String>` object, displays the list in unsorted order, calls the <xref:System.Collections.Generic.List%601.Sort%2A> method, and then displays the sorted list.
The following code demonstrates the <xref:System.Collections.Generic.List%601.Sort> and <xref:System.Collections.Generic.List%601.Sort%28System.Comparison%7B%600%7D%29> method overloads on a simple business object. Calling the <xref:System.Collections.Generic.List%601.Sort> method results in the use of the default comparer for the Part type, and the <xref:System.Collections.Generic.List%601.Sort%28System.Comparison%7B%600%7D%29> method is implemented by using an anonymous method.
@@ -3633,7 +3636,7 @@ Public Function StartsWith(e As Employee) As Boolean
3633
3636
The <xref:System.Collections.Generic.List%601.BinarySearch%28%600%29> method overload is then used to search for two strings that are not in the list, and the <xref:System.Collections.Generic.List%601.Insert%2A> method is used to insert them. The return value of the <xref:System.Collections.Generic.List%601.BinarySearch%2A> method is negative in each case, because the strings are not in the list. Taking the bitwise complement (the ~ operator in C# and Visual C++, `Xor` -1 in Visual Basic) of this negative number produces the index of the first element in the list that is larger than the search string, and inserting at this location preserves the sort order. The second search string is larger than any element in the list, so the insertion position is at the end of the list.
Copy file name to clipboardExpand all lines: xml/System.Collections.Generic/SortedSet`1.xml
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1379,7 +1379,14 @@
1379
1379
<Docs>
1380
1380
<summary>Gets the maximum value in the <seecref="T:System.Collections.Generic.SortedSet`1" />, as defined by the comparer.</summary>
1381
1381
<value>The maximum value in the set.</value>
1382
-
<remarks>To be added.</remarks>
1382
+
<remarks>
1383
+
<formattype="text/markdown"><![CDATA[
1384
+
1385
+
## Remarks
1386
+
If the <xref:System.Collections.Generic.SortedSet%601> has no elements, then the <xref:System.Collections.Generic.SortedSet%601.Max%2A> property returns the default value of `T`.
1387
+
1388
+
]]></format>
1389
+
</remarks>
1383
1390
</Docs>
1384
1391
</Member>
1385
1392
<MemberMemberName="Min">
@@ -1413,7 +1420,14 @@
1413
1420
<Docs>
1414
1421
<summary>Gets the minimum value in the <seecref="T:System.Collections.Generic.SortedSet`1" />, as defined by the comparer.</summary>
1415
1422
<value>The minimum value in the set.</value>
1416
-
<remarks>To be added.</remarks>
1423
+
<remarks>
1424
+
<formattype="text/markdown"><![CDATA[
1425
+
1426
+
## Remarks
1427
+
If the <xref:System.Collections.Generic.SortedSet%601> has no elements, then the <xref:System.Collections.Generic.SortedSet%601.Min%2A> property returns the default value of `T`.
Copy file name to clipboardExpand all lines: xml/System.Diagnostics/Process.xml
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4723,8 +4723,10 @@ There is a similar issue when you read all text from both the standard output an
4723
4723
]]></format>
4724
4724
</remarks>
4725
4725
<exception cref="T:System.InvalidOperationException">No file name was specified in the <see cref="T:System.Diagnostics.Process" /> component's <see cref="P:System.Diagnostics.Process.StartInfo" />.
4726
-
-or-
4727
-
The <see cref="P:System.Diagnostics.ProcessStartInfo.UseShellExecute" /> member of the <see cref="P:System.Diagnostics.Process.StartInfo" /> property is <see langword="true" /> while <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardInput" />, <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardOutput" />, or <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardError" /> is <see langword="true" />.</exception>
4726
+
4727
+
-or-
4728
+
4729
+
The <see cref="P:System.Diagnostics.ProcessStartInfo.UseShellExecute" /> member of the <see cref="P:System.Diagnostics.Process.StartInfo" /> property is <see langword="true" /> while <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardInput" />, <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardOutput" />, or <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardError" /> is <see langword="true" />.</exception>
4728
4730
<exception cref="T:System.ComponentModel.Win32Exception">There was an error in opening the associated file.</exception>
4729
4731
<exception cref="T:System.ObjectDisposedException">The process object has already been disposed.</exception>
4730
4732
<exception cref="T:System.PlatformNotSupportedException">Method not supported on operating systems without shell support such as Nano Server (.NET Core only).</exception>
<paramname="buffer">When this method returns, contains the characters read from the current source. If the total number of characters read is zero, the span remains unmodified.</param>
465
+
<summary>Reads all the characters from the input string, starting at the current position, and advances the current position to the end of the input string.</summary>
466
+
<returns>The total number of characters read into the buffer.</returns>
467
467
<remarks>To be added.</remarks>
468
+
<exceptioncref="T:System.ObjectDisposedException">The current string reader instance is closed.</exception>
468
469
</Docs>
469
470
</Member>
470
471
<MemberMemberName="Read">
@@ -577,10 +578,10 @@ This implementation of `Close` calls the <xref:System.IO.StringReader.Dispose%2A
<paramname="cancellationToken">To be added.</param>
582
-
<summary>To be added.</summary>
583
-
<returns>To be added.</returns>
581
+
<paramname="buffer">When this method returns, contains the characters read from the current source.</param>
582
+
<paramname="cancellationToken">The token to monitor for cancellation requests. The default value is <seecref="P:System.Threading.CancellationToken.None" />.</param>
583
+
<summary>Asynchronously reads all the characters from the input string, starting at the current position, and advances the current position to the end of the input string.</summary>
584
+
<returns>A task that represents the asynchronous read operation. The value of the <paramrefname="TResult" /> parameter contains the total number of characters read into the buffer.</returns>
584
585
<remarks>To be added.</remarks>
585
586
</Docs>
586
587
</Member>
@@ -686,10 +687,19 @@ This implementation of `Close` calls the <xref:System.IO.StringReader.Dispose%2A
<paramname="buffer">When this method returns, contains the characters read from the current source. If the total number of characters read is zero, the span remains unmodified.</param>
691
+
<summary>Reads all the characters from the input string starting at the current position and advances the current position to the end of the input string.</summary>
692
+
<returns>The total number of characters read into the buffer.</returns>
<paramname="cancellationToken">To be added.</param>
725
-
<summary>To be added.</summary>
726
-
<returns>To be added.</returns>
727
-
<remarks>To be added.</remarks>
733
+
<paramname="buffer">When this method returns, contains the characters read from the current source. If the total number of characters read is zero, the span remains unmodified.</param>
734
+
<paramname="cancellationToken">The token to monitor for cancellation requests. The default value is <seecref="P:System.Threading.CancellationToken.None" />.</param>
735
+
<summary>Asynchronously reads all the characters from the input string starting at the current position and advances the current position to the end of the input string.</summary>
736
+
<returns>A task representing the asynchronous read operation. The value of the <paramrefname="TResult" /> parameter contains the total number of characters read into the buffer.</returns>
737
+
<remarks>
738
+
<formattype="text/markdown">
739
+
<![CDATA[
740
+
741
+
## Remarks
742
+
743
+
<xref:System.IO.StringReader.ReadBlockAsync(System.Memory{System.Char},System.Threading.CancellationToken)> calls <xref:System.IO.StringReader.ReadBlock(System.Span{System.Char})> asynchronously, which in turn calls <xref:System.IO.StringReader.Read(System.Span{System.Char})> directly.
Copy file name to clipboardExpand all lines: xml/System.Linq/ParallelEnumerable.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10268,14 +10268,14 @@
10268
10268
<Docs>
10269
10269
<typeparam name="TSource">The type of elements of <paramref name="source" />.</typeparam>
10270
10270
<param name="source">A ParallelQuery on which to set the limit on the degrees of parallelism.</param>
10271
-
<param name="degreeOfParallelism">The degree of parallelism for the query. The default value is Math.Min(<see cref="P:System.Environment.ProcessorCount" />, <see langword="MAX_SUPPORTED_DOP" />) where <see langword="MAX_SUPPORTED_DOP" /> is 512.</param>
10271
+
<param name="degreeOfParallelism">The degree of parallelism for the query.</param>
10272
10272
<summary>Sets the degree of parallelism to use in a query. Degree of parallelism is the maximum number of concurrently executing tasks that will be used to process the query.</summary>
10273
10273
<returns>ParallelQuery representing the same query as source, with the limit on the degrees of parallelism set.</returns>
10274
10274
<remarks>To be added.</remarks>
10275
10275
<exception cref="T:System.ArgumentNullException">
10276
10276
<paramref name="source" /> is a null reference (Nothing in Visual Basic).</exception>
The following code example shows how <xref:System.Array.Copy%2A?displayProperty=nameWithType> copies elements between an array of type integer and an array of type <xref:System.Object>.
Copy file name to clipboardExpand all lines: xml/System/Object.xml
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -762,22 +762,25 @@ and the <xref:System.IDisposable> interface. The <xref:System.IDisposable.Dispos
762
762
763
763
For two objects `x` and `y` that have identical runtime types, `Object.ReferenceEquals(x.GetType(),y.GetType())` returns `true`. The following example uses the <xref:System.Object.GetType%2A> method with the <xref:System.Object.ReferenceEquals%2A> method to determine whether one numeric value is the same type as two other numeric values.
> To determine whether an object is a specific type, you can use your language's type comparison keyword or construct. For example, you can use the `TypeOf…Is` construct in Visual Basic or the `is` keyword in C#.
770
770
771
771
The <xref:System.Object.GetType%2A> method is inherited by all types that derive from <xref:System.Object>. This means that, in addition to using your own language's comparison keyword, you can use the <xref:System.Object.GetType%2A> method to determine the type of a particular object, as the following example shows.
0 commit comments