Skip to content

Commit 5b5dccf

Browse files
author
Prashanth Govindarajan
committed
sq
1 parent 669c0fc commit 5b5dccf

File tree

2 files changed

+18
-28
lines changed

2 files changed

+18
-28
lines changed

xml/System.Text.RegularExpressions/CaptureCollection.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ A collection that is read-only does not allow the addition or removal of element
540540
</Parameters>
541541
<Docs>
542542
<param name="item">The object to add to the collection.</param>
543-
<summary>Adds an item to the collection.</summary>
543+
<summary>Calling this method always throws <see cref="T:System.NotSupportedException" />.</summary>
544544
<exception cref="T:System.NotSupportedException">The collection is read-only.</exception>
545545
<remarks>To be added.</remarks>
546546
</Docs>
@@ -824,7 +824,7 @@ If an object occurs multiple times in the list, the <xref:System.Collections.Gen
824824
<Parameter Name="index" Type="System.Int32" Index="0" FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1;netcore-3.1;net-5.0" />
825825
</Parameters>
826826
<Docs>
827-
<param name="index">The zero-based index of the element to get or set.</param>
827+
<param name="index">The zero-based index of the element to get.</param>
828828
<summary>Gets the element at the specified index.</summary>
829829
<value>The element at the specified index.</value>
830830
<remarks>
@@ -1206,7 +1206,7 @@ Starting with the .NET Framework 2.0, this method uses the collection's objects'
12061206
<summary>Calling this method always throws <see cref="T:System.NotSupportedException" />.</summary>
12071207
<exception cref="T:System.NotSupportedException">The collection is read-only.</exception>
12081208
<remarks>To be added.</remarks>
1209-
</Docs>
1209+
</Docs>
12101210
</Member>
12111211
<Member MemberName="System.Collections.IList.IsFixedSize">
12121212
<MemberSignature Language="C#" Value="bool System.Collections.IList.IsFixedSize { get; }" />
@@ -1238,8 +1238,7 @@ Starting with the .NET Framework 2.0, this method uses the collection's objects'
12381238
</ReturnValue>
12391239
<Docs>
12401240
<summary>Gets a value indicating whether the collection has a fixed size.</summary>
1241-
<value>
1242-
<see langword="true" />, since the collection has a fixed size.</value>
1241+
<value><see langword="true" />, since the collection has a fixed size.</value>
12431242
<remarks>
12441243
<format type="text/markdown"><![CDATA[
12451244
@@ -1287,8 +1286,8 @@ This member is an explicit interface member implementation. It can be used only
12871286
<Parameter Name="index" Type="System.Int32" Index="0" FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1;netcore-3.1;net-5.0" />
12881287
</Parameters>
12891288
<Docs>
1290-
<param name="index">The zero-based index of the element to get or set.</param>
1291-
<summary>Gets or sets the element at the specified index.</summary>
1289+
<param name="index">The zero-based index of the element to get.</param>
1290+
<summary>Gets the element at the specified index.</summary>
12921291
<value>The element at the specified index.</value>
12931292
<remarks>
12941293
<format type="text/markdown"><![CDATA[

xml/System.Text.RegularExpressions/MatchCollection.xml

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ huge
573573
</Parameters>
574574
<Docs>
575575
<param name="item">The object to add to the collection.</param>
576-
<summary>Adds an item to the collection.</summary>
576+
<summary>Calling this method always throws <see cref="T:System.NotSupportedException" />.</summary>
577577
<remarks>To be added.</remarks>
578578
<exception cref="T:System.NotSupportedException">The collection is read-only.</exception>
579579
</Docs>
@@ -608,7 +608,7 @@ huge
608608
</ReturnValue>
609609
<Parameters />
610610
<Docs>
611-
<summary>Removes all items from the collection.</summary>
611+
<summary>Calling this method always throws <see cref="T:System.NotSupportedException" />.</summary>
612612
<remarks>
613613
<format type="text/markdown"><![CDATA[
614614
@@ -692,7 +692,7 @@ huge
692692
</Parameters>
693693
<Docs>
694694
<param name="item">The object to remove from the collection.</param>
695-
<summary>Removes the first occurrence of a specific object from the collection.</summary>
695+
<summary>Calling this method always throws <see cref="T:System.NotSupportedException" />.</summary>
696696
<returns>
697697
<see langword="true" /> if <paramref name="item" /> was successfully removed from the collection; otherwise, <see langword="false" />. This method also returns <see langword="false" /> if <paramref name="item" /> is not found in the original collection.</returns>
698698
<remarks>To be added.</remarks>
@@ -866,8 +866,8 @@ If an object occurs multiple times in the list, the <xref:System.Collections.Gen
866866
<Parameter Name="index" Type="System.Int32" Index="0" FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1;netcore-3.1;net-5.0" />
867867
</Parameters>
868868
<Docs>
869-
<param name="index">The zero-based index of the element to get or set.</param>
870-
<summary>Gets or sets the element at the specified index.</summary>
869+
<param name="index">The zero-based index of the element to get.</param>
870+
<summary>Gets the element at the specified index.</summary>
871871
<value>The element at the specified index.</value>
872872
<remarks>
873873
<format type="text/markdown"><![CDATA[
@@ -1076,8 +1076,8 @@ This member is an explicit interface member implementation. It can be used only
10761076
</Parameters>
10771077
<Docs>
10781078
<param name="value">The object to add to the collection.</param>
1079-
<summary>Adds an item to the collection.</summary>
1080-
<returns>The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection.</returns>
1079+
<summary>Calling this method always throws <see cref="T:System.NotSupportedException" />.</summary>
1080+
<returns>Calling this method always throws <see cref="T:System.NotSupportedException" />.</returns>
10811081
<remarks>To be added.</remarks>
10821082
<exception cref="T:System.NotSupportedException">The collection is read-only.</exception>
10831083
</Docs>
@@ -1292,8 +1292,7 @@ Starting with the .NET Framework 2.0, this method uses the collection's objects'
12921292
</ReturnValue>
12931293
<Docs>
12941294
<summary>Gets a value indicating whether the collection has a fixed size.</summary>
1295-
<value>
1296-
<see langword="true" /> if the collection has a fixed size; otherwise, <see langword="false" />.</value>
1295+
<value><see langword="true" />.</value>
12971296
<remarks>
12981297
<format type="text/markdown"><![CDATA[
12991298
@@ -1341,8 +1340,8 @@ This member is an explicit interface member implementation. It can be used only
13411340
<Parameter Name="index" Type="System.Int32" Index="0" FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1;netcore-3.1;net-5.0" />
13421341
</Parameters>
13431342
<Docs>
1344-
<param name="index">The zero-based index of the element to get or set.</param>
1345-
<summary>Gets or sets the element at the specified index.</summary>
1343+
<param name="index">The zero-based index of the element to get.</param>
1344+
<summary>Gets the element at the specified index.</summary>
13461345
<value>The element at the specified index.</value>
13471346
<remarks>
13481347
<format type="text/markdown"><![CDATA[
@@ -1389,16 +1388,8 @@ This property provides the ability to access a specific element in the collectio
13891388
</Parameters>
13901389
<Docs>
13911390
<param name="value">The object to remove from the collection.</param>
1392-
<summary>Removes the first occurrence of a specific object from the collection.</summary>
1393-
<remarks>
1394-
<format type="text/markdown"><![CDATA[
1395-
1396-
## Remarks
1397-
1398-
In collections of contiguous elements, such as lists, the elements that follow the removed element move up to occupy the vacated spot. If the collection is indexed, the indexes of the elements that are moved are also updated. This behavior does not apply to collections where elements are conceptually grouped into buckets, such as a hash table. If `value` is not found in the <xref:System.Collections.IList>, the <xref:System.Collections.IList> remains unchanged and no exception is thrown.
1399-
1400-
]]></format>
1401-
</remarks>
1391+
<summary>Calling this method always throws <see cref="T:System.NotSupportedException" />.</summary>
1392+
<remarks>To be added.</remarks>
14021393
<exception cref="T:System.NotSupportedException">The collection is read-only.</exception>
14031394
</Docs>
14041395
</Member>

0 commit comments

Comments
 (0)