Skip to content

Commit 818afd4

Browse files
committed
System.Collections docs
1 parent 79f056a commit 818afd4

File tree

10 files changed

+135
-38
lines changed

10 files changed

+135
-38
lines changed

xml/System.Collections.Frozen/FrozenDictionary.xml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,14 @@
7171
</Parameter>
7272
</Parameters>
7373
<Docs>
74-
<typeparam name="TKey">To be added.</typeparam>
75-
<typeparam name="TValue">To be added.</typeparam>
76-
<param name="source">To be added.</param>
77-
<summary>To be added.</summary>
78-
<returns>To be added.</returns>
79-
<remarks>To be added.</remarks>
74+
<typeparam name="TKey">The type of the keys in the dictionary.</typeparam>
75+
<typeparam name="TValue">The type of the values in the dictionary.</typeparam>
76+
<param name="source">The key/value pairs to use to populate the dictionary.</param>
77+
<summary>Creates a <see cref="T:System.Collections.Frozen.FrozenDictionary`2" /> with the specified key/value pairs.</summary>
78+
<returns>A <see cref="T:System.Collections.Frozen.FrozenDictionary`2" /> that contains the specified keys and values.</returns>
79+
<remarks>
80+
<para>If the same key appears multiple times in the input, the latter one in the sequence takes precedence. This differs from <see cref="M:System.Linq.Enumerable.ToDictionary" />, with which multiple duplicate keys will result in an exception.</para>
81+
</remarks>
8082
</Docs>
8183
</Member>
8284
<Member MemberName="Create&lt;TKey,TValue&gt;">
@@ -132,13 +134,15 @@
132134
</Parameter>
133135
</Parameters>
134136
<Docs>
135-
<typeparam name="TKey">To be added.</typeparam>
136-
<typeparam name="TValue">To be added.</typeparam>
137-
<param name="comparer">To be added.</param>
138-
<param name="source">To be added.</param>
139-
<summary>To be added.</summary>
140-
<returns>To be added.</returns>
141-
<remarks>To be added.</remarks>
137+
<typeparam name="TKey">The type of the keys in the dictionary.</typeparam>
138+
<typeparam name="TValue">The type of the values in the dictionary.</typeparam>
139+
<param name="comparer">The comparer implementation to use to compare keys for equality. If <see langword="null" />, <see cref="P:System.Collections.Generic.EqualityComparer`1.Default" /> is used.</param>
140+
<param name="source">The key/value pairs to use to populate the dictionary.</param>
141+
<summary>Creates a <see cref="T:System.Collections.Frozen.FrozenDictionary`2" /> with the specified key/value pairs.</summary>
142+
<returns>A <see cref="T:System.Collections.Frozen.FrozenDictionary`2" /> that contains the specified keys and values.</returns>
143+
<remarks>
144+
<para>If the same key appears multiple times in the input, the latter one in the sequence takes precedence. This differs from <see cref="M:System.Linq.Enumerable.ToDictionary" />, with which multiple duplicate keys will result in an exception.</para>
145+
</remarks>
142146
</Docs>
143147
</Member>
144148
<Member MemberName="ToFrozenDictionary&lt;TKey,TValue&gt;">

xml/System.Collections.Frozen/FrozenDictionary`2.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,7 @@
856856
<param name="index">The zero-based index in <paramref name="array" /> at which copying begins.</param>
857857
<summary>Copies the elements of the <see cref="T:System.Collections.ICollection" /> to an <see cref="T:System.Array" />, starting at a particular <see cref="T:System.Array" /> index.</summary>
858858
<remarks>To be added.</remarks>
859+
<inheritdoc />
859860
</Docs>
860861
</Member>
861862
<Member MemberName="System.Collections.ICollection.IsSynchronized">
@@ -883,6 +884,7 @@
883884
<value>
884885
<see langword="true" /> if access to the <see cref="T:System.Collections.ICollection" /> is synchronized (thread safe); otherwise, <see langword="false" />.</value>
885886
<remarks>To be added.</remarks>
887+
<inheritdoc />
886888
</Docs>
887889
</Member>
888890
<Member MemberName="System.Collections.ICollection.SyncRoot">
@@ -909,6 +911,7 @@
909911
<summary>Gets an object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection" />.</summary>
910912
<value>An object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection" />.</value>
911913
<remarks>To be added.</remarks>
914+
<inheritdoc />
912915
</Docs>
913916
</Member>
914917
<Member MemberName="System.Collections.IDictionary.Add">
@@ -940,6 +943,7 @@
940943
<param name="value">The <see cref="T:System.Object" /> to use as the value of the element to add.</param>
941944
<summary>Adds an element with the provided key and value to the <see cref="T:System.Collections.IDictionary" /> object.</summary>
942945
<remarks>To be added.</remarks>
946+
<inheritdoc />
943947
</Docs>
944948
</Member>
945949
<Member MemberName="System.Collections.IDictionary.Clear">
@@ -966,6 +970,7 @@
966970
<Docs>
967971
<summary>Removes all elements from the <see cref="T:System.Collections.IDictionary" /> object.</summary>
968972
<remarks>To be added.</remarks>
973+
<inheritdoc />
969974
</Docs>
970975
</Member>
971976
<Member MemberName="System.Collections.IDictionary.Contains">
@@ -997,6 +1002,7 @@
9971002
<returns>
9981003
<see langword="true" /> if the <see cref="T:System.Collections.IDictionary" /> contains an element with the key; otherwise, <see langword="false" />.</returns>
9991004
<remarks>To be added.</remarks>
1005+
<inheritdoc />
10001006
</Docs>
10011007
</Member>
10021008
<Member MemberName="System.Collections.IDictionary.GetEnumerator">
@@ -1024,6 +1030,7 @@
10241030
<summary>Returns an <see cref="T:System.Collections.IDictionaryEnumerator" /> object for the <see cref="T:System.Collections.IDictionary" /> object.</summary>
10251031
<returns>An <see cref="T:System.Collections.IDictionaryEnumerator" /> object for the <see cref="T:System.Collections.IDictionary" /> object.</returns>
10261032
<remarks>To be added.</remarks>
1033+
<inheritdoc />
10271034
</Docs>
10281035
</Member>
10291036
<Member MemberName="System.Collections.IDictionary.IsFixedSize">
@@ -1051,6 +1058,7 @@
10511058
<value>
10521059
<see langword="true" /> if the <see cref="T:System.Collections.IDictionary" /> object has a fixed size; otherwise, <see langword="false" />.</value>
10531060
<remarks>To be added.</remarks>
1061+
<inheritdoc />
10541062
</Docs>
10551063
</Member>
10561064
<Member MemberName="System.Collections.IDictionary.IsReadOnly">
@@ -1078,6 +1086,7 @@
10781086
<value>
10791087
<see langword="true" /> if the <see cref="T:System.Collections.IDictionary" /> object is read-only; otherwise, <see langword="false" />.</value>
10801088
<remarks>To be added.</remarks>
1089+
<inheritdoc />
10811090
</Docs>
10821091
</Member>
10831092
<Member MemberName="System.Collections.IDictionary.Item">
@@ -1141,6 +1150,7 @@
11411150
<summary>Gets an <see cref="T:System.Collections.ICollection" /> object containing the keys of the <see cref="T:System.Collections.IDictionary" /> object.</summary>
11421151
<value>An <see cref="T:System.Collections.ICollection" /> object containing the keys of the <see cref="T:System.Collections.IDictionary" /> object.</value>
11431152
<remarks>To be added.</remarks>
1153+
<inheritdoc />
11441154
</Docs>
11451155
</Member>
11461156
<Member MemberName="System.Collections.IDictionary.Remove">
@@ -1170,6 +1180,7 @@
11701180
<param name="key">The key of the element to remove.</param>
11711181
<summary>Removes the element with the specified key from the <see cref="T:System.Collections.IDictionary" /> object.</summary>
11721182
<remarks>To be added.</remarks>
1183+
<inheritdoc />
11731184
</Docs>
11741185
</Member>
11751186
<Member MemberName="System.Collections.IDictionary.Values">
@@ -1196,6 +1207,7 @@
11961207
<summary>Gets an <see cref="T:System.Collections.ICollection" /> object containing the values in the <see cref="T:System.Collections.IDictionary" /> object.</summary>
11971208
<value>An <see cref="T:System.Collections.ICollection" /> object containing the values in the <see cref="T:System.Collections.IDictionary" /> object.</value>
11981209
<remarks>To be added.</remarks>
1210+
<inheritdoc />
11991211
</Docs>
12001212
</Member>
12011213
<Member MemberName="System.Collections.IEnumerable.GetEnumerator">
@@ -1223,6 +1235,7 @@
12231235
<summary>Returns an enumerator that iterates through a collection.</summary>
12241236
<returns>An <see cref="T:System.Collections.IEnumerator" /> object that can be used to iterate through the collection.</returns>
12251237
<remarks>To be added.</remarks>
1238+
<inheritdoc />
12261239
</Docs>
12271240
</Member>
12281241
<Member MemberName="TryGetAlternateLookup&lt;TAlternateKey&gt;">

xml/System.Collections.Frozen/FrozenSet`1.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,7 @@
859859
<param name="index">The zero-based index in <paramref name="array" /> at which copying begins.</param>
860860
<summary>Copies the elements of the <see cref="T:System.Collections.ICollection" /> to an <see cref="T:System.Array" />, starting at a particular <see cref="T:System.Array" /> index.</summary>
861861
<remarks>To be added.</remarks>
862+
<inheritdoc />
862863
</Docs>
863864
</Member>
864865
<Member MemberName="System.Collections.ICollection.IsSynchronized">
@@ -886,6 +887,7 @@
886887
<value>
887888
<see langword="true" /> if access to the <see cref="T:System.Collections.ICollection" /> is synchronized (thread safe); otherwise, <see langword="false" />.</value>
888889
<remarks>To be added.</remarks>
890+
<inheritdoc />
889891
</Docs>
890892
</Member>
891893
<Member MemberName="System.Collections.ICollection.SyncRoot">
@@ -912,6 +914,7 @@
912914
<summary>Gets an object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection" />.</summary>
913915
<value>An object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection" />.</value>
914916
<remarks>To be added.</remarks>
917+
<inheritdoc />
915918
</Docs>
916919
</Member>
917920
<Member MemberName="System.Collections.IEnumerable.GetEnumerator">
@@ -939,6 +942,7 @@
939942
<summary>Returns an enumerator that iterates through a collection.</summary>
940943
<returns>An <see cref="T:System.Collections.IEnumerator" /> object that can be used to iterate through the collection.</returns>
941944
<remarks>To be added.</remarks>
945+
<inheritdoc />
942946
</Docs>
943947
</Member>
944948
<Member MemberName="TryGetAlternateLookup&lt;TAlternate&gt;">

xml/System.Collections.Generic/OrderedDictionary`2+Enumerator.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
<summary>Gets both the key and the value of the current dictionary entry.</summary>
131131
<value>A <see cref="T:System.Collections.DictionaryEntry" /> containing both the key and the value of the current dictionary entry.</value>
132132
<remarks>This member is an explicit interface member implementation. It can be used only when the &lt;xref:System.Collections.Generic.OrderedDictionary`2.Enumerator&gt; instance is cast to an &lt;xref:System.Collections.IDictionaryEnumerator&gt; interface.</remarks>
133+
<inheritdoc />
133134
</Docs>
134135
</Member>
135136
<Member MemberName="System.Collections.IDictionaryEnumerator.Key">

xml/System.Collections.Generic/OrderedDictionary`2+KeyCollection.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
<returns>
9393
<see langword="true" /> if <paramref name="key" /> is found in the <see cref="T:System.Collections.Generic.ICollection`1" />; otherwise, <see langword="false" />.</returns>
9494
<remarks>To be added.</remarks>
95+
<inheritdoc />
9596
</Docs>
9697
</Member>
9798
<Member MemberName="CopyTo">
@@ -122,6 +123,7 @@
122123
<param name="arrayIndex">The zero-based index in <paramref name="array" /> at which copying begins.</param>
123124
<summary>Copies the elements of the <see cref="T:System.Collections.Generic.ICollection`1" /> to an <see cref="T:System.Array" />, starting at a particular <see cref="T:System.Array" /> index.</summary>
124125
<remarks>To be added.</remarks>
126+
<inheritdoc />
125127
</Docs>
126128
</Member>
127129
<Member MemberName="Count">
@@ -149,6 +151,7 @@
149151
<summary>Gets the number of elements contained in the <see cref="T:System.Collections.Generic.ICollection`1" />.</summary>
150152
<value>The number of elements contained in the <see cref="T:System.Collections.Generic.ICollection`1" />.</value>
151153
<remarks>To be added.</remarks>
154+
<inheritdoc />
152155
</Docs>
153156
</Member>
154157
<Member MemberName="GetEnumerator">
@@ -500,6 +503,7 @@
500503
<param name="index">The zero-based index in <paramref name="array" /> at which copying begins.</param>
501504
<summary>Copies the elements of the <see cref="T:System.Collections.ICollection" /> to an <see cref="T:System.Array" />, starting at a particular <see cref="T:System.Array" /> index.</summary>
502505
<remarks>To be added.</remarks>
506+
<inheritdoc />
503507
</Docs>
504508
</Member>
505509
<Member MemberName="System.Collections.ICollection.IsSynchronized">
@@ -526,6 +530,7 @@
526530
<value>
527531
<see langword="true" /> if access to the <see cref="T:System.Collections.ICollection" /> is synchronized (thread safe); otherwise, <see langword="false" />.</value>
528532
<remarks>This member is an explicit interface member implementation. It can be used only when the &lt;xref:System.Collections.Generic.OrderedDictionary`2.KeyCollection&gt; instance is cast to an &lt;xref:System.Collections.ICollection&gt; interface.</remarks>
533+
<inheritdoc />
529534
</Docs>
530535
</Member>
531536
<Member MemberName="System.Collections.ICollection.SyncRoot">
@@ -557,6 +562,7 @@
557562
<summary>Gets an object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection" />.</summary>
558563
<value>An object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection" />.</value>
559564
<remarks>This member is an explicit interface member implementation. It can be used only when the &lt;xref:System.Collections.Generic.OrderedDictionary`2.KeyCollection&gt; instance is cast to an &lt;xref:System.Collections.ICollection&gt; interface.</remarks>
565+
<inheritdoc />
560566
</Docs>
561567
</Member>
562568
<Member MemberName="System.Collections.IEnumerable.GetEnumerator">
@@ -583,6 +589,7 @@
583589
<summary>Returns an enumerator that iterates through a collection.</summary>
584590
<returns>An <see cref="T:System.Collections.IEnumerator" /> object that can be used to iterate through the collection.</returns>
585591
<remarks>This member is an explicit interface member implementation. It can be used only when the &lt;xref:System.Collections.Generic.OrderedDictionary`2.KeyCollection&gt; instance is cast to an &lt;xref:System.Collections.IEnumerable&gt; interface.</remarks>
592+
<inheritdoc />
586593
</Docs>
587594
</Member>
588595
<Member MemberName="System.Collections.IList.Add">
@@ -638,6 +645,7 @@
638645
<Docs>
639646
<summary>Removes all items from the <see cref="T:System.Collections.IList" />.</summary>
640647
<remarks>This member is an explicit interface member implementation. It can be used only when the &lt;xref:System.Collections.Generic.OrderedDictionary`2.KeyCollection&gt; instance is cast to an &lt;xref:System.Collections.IList&gt; interface.</remarks>
648+
<inheritdoc />
641649
</Docs>
642650
</Member>
643651
<Member MemberName="System.Collections.IList.Contains">
@@ -668,6 +676,7 @@
668676
<returns>
669677
<see langword="true" /> if the <see cref="T:System.Object" /> is found in the <see cref="T:System.Collections.IList" />; otherwise, <see langword="false" />.</returns>
670678
<remarks>To be added.</remarks>
679+
<inheritdoc />
671680
</Docs>
672681
</Member>
673682
<Member MemberName="System.Collections.IList.IndexOf">
@@ -697,6 +706,7 @@
697706
<summary>Determines the index of a specific item in the <see cref="T:System.Collections.IList" />.</summary>
698707
<returns>The index of <paramref name="value" /> if found in the list; otherwise, -1.</returns>
699708
<remarks>To be added.</remarks>
709+
<inheritdoc />
700710
</Docs>
701711
</Member>
702712
<Member MemberName="System.Collections.IList.Insert">
@@ -727,6 +737,7 @@
727737
<param name="value">The object to insert into the <see cref="T:System.Collections.IList" />.</param>
728738
<summary>Inserts an item into the <see cref="T:System.Collections.IList" /> at the specified index.</summary>
729739
<remarks>To be added.</remarks>
740+
<inheritdoc />
730741
</Docs>
731742
</Member>
732743
<Member MemberName="System.Collections.IList.IsFixedSize">
@@ -753,6 +764,7 @@
753764
<value>
754765
<see langword="true" /> if the <see cref="T:System.Collections.IList" /> has a fixed size; otherwise, <see langword="false" />.</value>
755766
<remarks>This member is an explicit interface member implementation. It can be used only when the &lt;xref:System.Collections.Generic.OrderedDictionary`2.KeyCollection&gt; instance is cast to an &lt;xref:System.Collections.IList&gt; interface.</remarks>
767+
<inheritdoc />
756768
</Docs>
757769
</Member>
758770
<Member MemberName="System.Collections.IList.IsReadOnly">
@@ -779,6 +791,7 @@
779791
<value>
780792
<see langword="true" /> if the <see cref="T:System.Collections.IList" /> is read-only; otherwise, <see langword="false" />.</value>
781793
<remarks>This member is an explicit interface member implementation. It can be used only when the &lt;xref:System.Collections.Generic.OrderedDictionary`2.KeyCollection&gt; instance is cast to an &lt;xref:System.Collections.IList&gt; interface.</remarks>
794+
<inheritdoc />
782795
</Docs>
783796
</Member>
784797
<Member MemberName="System.Collections.IList.Item">
@@ -843,6 +856,7 @@
843856
<param name="value">The object to remove from the <see cref="T:System.Collections.IList" />.</param>
844857
<summary>Removes the first occurrence of a specific object from the <see cref="T:System.Collections.IList" />.</summary>
845858
<remarks>To be added.</remarks>
859+
<inheritdoc />
846860
</Docs>
847861
</Member>
848862
<Member MemberName="System.Collections.IList.RemoveAt">
@@ -871,6 +885,7 @@
871885
<param name="index">The zero-based index of the item to remove.</param>
872886
<summary>Removes the <see cref="T:System.Collections.IList" /> item at the specified index.</summary>
873887
<remarks>To be added.</remarks>
888+
<inheritdoc />
874889
</Docs>
875890
</Member>
876891
</Members>

0 commit comments

Comments
 (0)