Skip to content

Commit c60a799

Browse files
authored
Merge pull request #4100 from dotnet/publish-24704
Merge master into live
2 parents 2f5aa13 + f055497 commit c60a799

40 files changed

+657
-300
lines changed

samples/snippets/csharp/VS_Snippets_CLR_System/system.math.round.overload/cs/midpoint1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void Main()
2424
// 12.7 13 13 13
2525
// 12.8 13 13 13
2626
// 12.9 13 13 13
27-
// 13.0 13 13 13
27+
// 13 13 13 13
2828
// </Snippet5>
2929
}
3030
}

samples/snippets/csharp/VS_Snippets_CLR_System/system.math.round.overload/cs/midpoint2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ public static void Main()
2828
// 12.7 13 13 13
2929
// 12.8 13 13 13
3030
// 12.9 13 13 13
31-
// 13.0 13 13 13
31+
// 13 13 13 13
3232
// </Snippet6>

samples/snippets/visualbasic/VS_Snippets_CLR_System/system.math.round.overload/vb/midpoint1.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ End Module
2626
' 12.7 13 13 13
2727
' 12.8 13 13 13
2828
' 12.9 13 13 13
29-
' 13.0 13 13 13
29+
' 13 13 13 13
3030
' </Snippet5>

samples/snippets/visualbasic/VS_Snippets_CLR_System/system.math.round.overload/vb/midpoint2.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ End Module
2828
' 12.7 13 13 13
2929
' 12.8 13 13 13
3030
' 12.9 13 13 13
31-
' 13.0 13 13 13
31+
' 13 13 13 13
3232
' </Snippet6>

xml/System.Collections.Immutable/ImmutableArray.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -679,12 +679,12 @@ This overload allows helper methods or custom builder classes to efficiently avo
679679
<Parameter Name="selector" Type="System.Func&lt;TSource,TResult&gt;" />
680680
</Parameters>
681681
<Docs>
682-
<typeparam name="TSource">To be added.</typeparam>
683-
<typeparam name="TResult">To be added.</typeparam>
682+
<typeparam name="TSource">The type of element stored in the source array.</typeparam>
683+
<typeparam name="TResult">The type of element to store in the target array.</typeparam>
684684
<param name="items">The source array to initialize the resulting array with.</param>
685685
<param name="selector">The function to apply to each element from the source array.</param>
686686
<summary>Initializes a new instance of the <see cref="T:System.Collections.Immutable.ImmutableArray`1" /> struct.</summary>
687-
<returns>To be added.</returns>
687+
<returns>An immutable array that contains the specified items.</returns>
688688
<remarks>
689689
<format type="text/markdown"><![CDATA[
690690
@@ -728,14 +728,14 @@ This overload allows helper methods or custom builder classes to efficiently avo
728728
<Parameter Name="selector" Type="System.Func&lt;TSource,TResult&gt;" />
729729
</Parameters>
730730
<Docs>
731-
<typeparam name="TSource">To be added.</typeparam>
732-
<typeparam name="TResult">To be added.</typeparam>
731+
<typeparam name="TSource">The type of element stored in the source array.</typeparam>
732+
<typeparam name="TResult">The type of element to store in the target array.</typeparam>
733733
<param name="items">The source array to initialize the resulting array with.</param>
734734
<param name="start">The index of the first element in the source array to include in the resulting array.</param>
735735
<param name="length">The number of elements from the source array to include in the resulting array.</param>
736736
<param name="selector">The function to apply to each element from the source array included in the resulting array.</param>
737737
<summary>Initializes a new instance of the <see cref="T:System.Collections.Immutable.ImmutableArray`1" /> struct.</summary>
738-
<returns>To be added.</returns>
738+
<returns>An immutable array that contains the specified items.</returns>
739739
<remarks>
740740
<format type="text/markdown"><![CDATA[
741741
@@ -779,14 +779,14 @@ This overload allows helper methods or custom builder classes to efficiently avo
779779
<Parameter Name="arg" Type="TArg" />
780780
</Parameters>
781781
<Docs>
782-
<typeparam name="TSource">To be added.</typeparam>
783-
<typeparam name="TArg">To be added.</typeparam>
784-
<typeparam name="TResult">To be added.</typeparam>
782+
<typeparam name="TSource">The type of element stored in the source array.</typeparam>
783+
<typeparam name="TArg">The type of argument to pass to the selector mapping function.</typeparam>
784+
<typeparam name="TResult">The type of element to store in the target array.</typeparam>
785785
<param name="items">The source array to initialize the resulting array with.</param>
786786
<param name="selector">The function to apply to each element from the source array.</param>
787787
<param name="arg">An argument to be passed to the selector mapping function.</param>
788788
<summary>Initializes a new instance of the <see cref="T:System.Collections.Immutable.ImmutableArray`1" /> struct.</summary>
789-
<returns>To be added.</returns>
789+
<returns>An immutable array that contains the specified items.</returns>
790790
<remarks>
791791
<format type="text/markdown"><![CDATA[
792792
@@ -832,16 +832,16 @@ This overload allows helper methods or custom builder classes to efficiently avo
832832
<Parameter Name="arg" Type="TArg" />
833833
</Parameters>
834834
<Docs>
835-
<typeparam name="TSource">To be added.</typeparam>
836-
<typeparam name="TArg">To be added.</typeparam>
837-
<typeparam name="TResult">To be added.</typeparam>
835+
<typeparam name="TSource">The type of element stored in the source array.</typeparam>
836+
<typeparam name="TArg">The type of argument to be passed to the selector mapping function.</typeparam>
837+
<typeparam name="TResult">The type of element to be stored in the target array.</typeparam>
838838
<param name="items">The source array to initialize the resulting array with.</param>
839839
<param name="start">The index of the first element in the source array to include in the resulting array.</param>
840840
<param name="length">The number of elements from the source array to include in the resulting array.</param>
841841
<param name="selector">The function to apply to each element from the source array included in the resulting array.</param>
842842
<param name="arg">An argument to be passed to the selector mapping function.</param>
843843
<summary>Initializes a new instance of the <see cref="T:System.Collections.Immutable.ImmutableArray`1" /> struct.</summary>
844-
<returns>To be added.</returns>
844+
<returns>An immutable array that contains the specified items.</returns>
845845
<remarks>
846846
<format type="text/markdown"><![CDATA[
847847

xml/System.Collections.Immutable/ImmutableArray`1+Builder.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Type Name="ImmutableArray&lt;T&gt;+Builder" FullName="System.Collections.Immutable.ImmutableArray&lt;T&gt;+Builder">
1+
<Type Name="ImmutableArray&lt;T&gt;+Builder" FullName="System.Collections.Immutable.ImmutableArray&lt;T&gt;+Builder">
22
<TypeSignature Language="C#" Value="public sealed class ImmutableArray&lt;T&gt;.Builder : System.Collections.Generic.ICollection&lt;T&gt;, System.Collections.Generic.IEnumerable&lt;T&gt;, System.Collections.Generic.IList&lt;T&gt;, System.Collections.Generic.IReadOnlyCollection&lt;T&gt;, System.Collections.Generic.IReadOnlyList&lt;T&gt;" />
33
<TypeSignature Language="ILAsm" Value=".class nested public auto ansi sealed beforefieldinit ImmutableArray`1/Builder&lt;T&gt; extends System.Object implements class System.Collections.Generic.ICollection`1&lt;!T&gt;, class System.Collections.Generic.IEnumerable`1&lt;!T&gt;, class System.Collections.Generic.IList`1&lt;!T&gt;, class System.Collections.Generic.IReadOnlyCollection`1&lt;!T&gt;, class System.Collections.Generic.IReadOnlyList`1&lt;!T&gt;, class System.Collections.IEnumerable" />
44
<TypeSignature Language="DocId" Value="T:System.Collections.Immutable.ImmutableArray`1.Builder" />
@@ -1029,7 +1029,7 @@
10291029
<Parameters />
10301030
<Docs>
10311031
<summary>Extracts the internal array as an <see cref="T:System.Collections.Immutable.ImmutableArray`1" /> and replaces it with a zero length array.</summary>
1032-
<returns>To be added.</returns>
1032+
<returns>An immutable array containing the elements of the builder.</returns>
10331033
<remarks>To be added.</remarks>
10341034
<exception cref="T:System.InvalidOperationException">When <see cref="P:System.Collections.Immutable.ImmutableArray`1.Builder.Count" /> doesn't equal <see cref="P:System.Collections.Immutable.ImmutableArray`1.Builder.Capacity" />.</exception>
10351035
</Docs>

xml/System.Collections.Immutable/ImmutableArray`1.xml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Type Name="ImmutableArray&lt;T&gt;" FullName="System.Collections.Immutable.ImmutableArray&lt;T&gt;">
1+
<Type Name="ImmutableArray&lt;T&gt;" FullName="System.Collections.Immutable.ImmutableArray&lt;T&gt;">
22
<TypeSignature Language="C#" Value="public struct ImmutableArray&lt;T&gt; : IEquatable&lt;System.Collections.Immutable.ImmutableArray&lt;T&gt;&gt;, System.Collections.Generic.ICollection&lt;T&gt;, System.Collections.Generic.IEnumerable&lt;T&gt;, System.Collections.Generic.IList&lt;T&gt;, System.Collections.Generic.IReadOnlyCollection&lt;T&gt;, System.Collections.Generic.IReadOnlyList&lt;T&gt;, System.Collections.IList, System.Collections.Immutable.IImmutableList&lt;T&gt;, System.Collections.IStructuralComparable, System.Collections.IStructuralEquatable" />
33
<TypeSignature Language="ILAsm" Value=".class public sequential ansi sealed beforefieldinit ImmutableArray`1&lt;T&gt; extends System.ValueType implements class System.Collections.Generic.ICollection`1&lt;!T&gt;, class System.Collections.Generic.IEnumerable`1&lt;!T&gt;, class System.Collections.Generic.IList`1&lt;!T&gt;, class System.Collections.Generic.IReadOnlyCollection`1&lt;!T&gt;, class System.Collections.Generic.IReadOnlyList`1&lt;!T&gt;, class System.Collections.ICollection, class System.Collections.IEnumerable, class System.Collections.IList, class System.Collections.Immutable.IImmutableList`1&lt;!T&gt;, class System.Collections.IStructuralComparable, class System.Collections.IStructuralEquatable, class System.IEquatable`1&lt;valuetype System.Collections.Immutable.ImmutableArray`1&lt;!T&gt;&gt;" />
44
<TypeSignature Language="DocId" Value="T:System.Collections.Immutable.ImmutableArray`1" />
@@ -325,9 +325,9 @@
325325
</TypeParameters>
326326
<Parameters />
327327
<Docs>
328-
<typeparam name="TOther">To be added.</typeparam>
328+
<typeparam name="TOther">The type of array element to return.</typeparam>
329329
<summary>Initializes a new instance of the <see cref="T:System.Collections.Immutable.ImmutableArray`1" /> struct by casting the underlying array to an array of type <typeparamref name="TOther" />.</summary>
330-
<returns>To be added.</returns>
330+
<returns>An immutable array instance with elements cast to the new type.</returns>
331331
<remarks>To be added.</remarks>
332332
<exception cref="T:System.InvalidCastException">Thrown if the cast is illegal.</exception>
333333
</Docs>
@@ -366,10 +366,10 @@
366366
<Parameter Name="items" Type="System.Collections.Immutable.ImmutableArray&lt;TDerived&gt;" />
367367
</Parameters>
368368
<Docs>
369-
<typeparam name="TDerived">To be added.</typeparam>
369+
<typeparam name="TDerived">The type of array element to return.</typeparam>
370370
<param name="items">The array to initialize the array with. No copy is made.</param>
371-
<summary>Initializes a new instance of the <see cref="T:System.Collections.Immutable.ImmutableArray`1" /> struct based on the contents of an existing instance, allowing a covariant static cast to efficiently reuse the existing array.</summary>
372-
<returns>To be added.</returns>
371+
<summary>Initializes a new instance of the <see cref="T:System.Collections.Immutable.ImmutableArray`1" /> struct based on the contents of an existing instance, allowing a covariant static cast to efficiently reuse the existing array.</summary>
372+
<returns>An immutable array instance with elements cast to the new type.</returns>
373373
<remarks>
374374
<format type="text/markdown"><![CDATA[
375375
@@ -2152,8 +2152,8 @@
21522152
<ReturnType>System.Int32</ReturnType>
21532153
</ReturnValue>
21542154
<Docs>
2155-
<summary>Gets the number of array in the collection.</summary>
2156-
<value>To be added.</value>
2155+
<summary>Gets the number of items in the collection.</summary>
2156+
<value>Number of items in the collection.</value>
21572157
<remarks>To be added.</remarks>
21582158
<exception cref="T:System.InvalidOperationException">Thrown if the <see cref="P:System.Collections.Immutable.ImmutableArray`1.IsDefault" /> property returns true.</exception>
21592159
</Docs>
@@ -2421,8 +2421,8 @@
24212421
<ReturnType>System.Int32</ReturnType>
24222422
</ReturnValue>
24232423
<Docs>
2424-
<summary>Gets the number of array in the collection.</summary>
2425-
<value>To be added.</value>
2424+
<summary>Gets the number of items in the collection.</summary>
2425+
<value>The number of items in the collection.</value>
24262426
<remarks>To be added.</remarks>
24272427
<exception cref="T:System.InvalidOperationException">Thrown if the <see cref="P:System.Collections.Immutable.ImmutableArray`1.IsDefault" /> property returns true.</exception>
24282428
</Docs>
@@ -2540,7 +2540,7 @@
25402540
</ReturnValue>
25412541
<Docs>
25422542
<summary>Gets the size of the array.</summary>
2543-
<value>To be added.</value>
2543+
<value>The number of items in the collection.</value>
25442544
<remarks>To be added.</remarks>
25452545
<exception cref="T:System.InvalidOperationException">Thrown if the <see cref="P:System.Collections.Immutable.ImmutableArray`1.IsDefault" /> property returns true.</exception>
25462546
</Docs>
@@ -2576,9 +2576,17 @@
25762576
<ReturnType>System.Boolean</ReturnType>
25772577
</ReturnValue>
25782578
<Docs>
2579-
<summary>See the <see cref="T:System.Collections.ICollection" /> interface.</summary>
2580-
<value>To be added.</value>
2581-
<remarks>To be added.</remarks>
2579+
<summary>See the <see cref="T:System.Collections.ICollection" /> interface. Always returns <see langword="true" /> since since immutable collections are thread-safe.</summary>
2580+
<value>Boolean value determining whether the collection is thread-safe.</value>
2581+
<remarks>
2582+
<format type="text/markdown"><![CDATA[
2583+
2584+
## Remarks
2585+
2586+
This member is an explicit interface member implementation. It can be used only when the <xref:System.Collections.Immutable.ImmutableArray`1> instance is cast to an <xref:System.Collections.ICollection> interface.
2587+
2588+
]]></format>
2589+
</remarks>
25822590
</Docs>
25832591
</Member>
25842592
<Member MemberName="System.Collections.ICollection.SyncRoot">
@@ -2613,7 +2621,7 @@
26132621
</ReturnValue>
26142622
<Docs>
26152623
<summary>Gets the sync root.</summary>
2616-
<value>To be added.</value>
2624+
<value>An object for synchronizing access to the collection.</value>
26172625
<remarks>To be added.</remarks>
26182626
</Docs>
26192627
</Member>

0 commit comments

Comments
 (0)