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.Collections.Specialized/HybridDictionary.xml
+1-1
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@
71
71
<formattype="text/markdown"><![CDATA[
72
72
73
73
## Remarks
74
-
This class is recommended for cases where the number of elements in a dictionary is unknown. It takes advantage of the improved performance of a <xref:System.Collections.Specialized.ListDictionary> with small collections, and offers the flexibility of switching to a <xref:System.Collections.Hashtable> which handles larger collections better than <xref:System.Collections.Specialized.ListDictionary>.
74
+
This class is recommended for cases where the number of elements in a dictionary is unknown. It takes advantage of the improved performance of a <xref:System.Collections.Specialized.ListDictionary> with small collections, and offers the flexibility of switching to a <xref:System.Collections.Hashtable>, which handles larger collections better than <xref:System.Collections.Specialized.ListDictionary>.
75
75
76
76
If the initial size of the collection is greater than the optimal size for a <xref:System.Collections.Specialized.ListDictionary>, the collection is stored in a <xref:System.Collections.Hashtable> to avoid the overhead of copying elements from the <xref:System.Collections.Specialized.ListDictionary> to a <xref:System.Collections.Hashtable>.
Copy file name to clipboardExpand all lines: xml/System.Collections.Specialized/NameObjectCollectionBase.xml
+1-3
Original file line number
Diff line number
Diff line change
@@ -94,9 +94,7 @@
94
94
`null` is allowed as a key or as a value.
95
95
96
96
> [!CAUTION]
97
-
> The <xref:System.Collections.Specialized.NameObjectCollectionBase.BaseGet%2A> method does not distinguish between `null` which is returned because the specified key is not found and `null` which is returned because the value associated with the key is `null`.
98
-
99
-
97
+
> The <xref:System.Collections.Specialized.NameObjectCollectionBase.BaseGet%2A> method does not distinguish between `null` that's returned because the specified key is not found and `null` that's returned because the value associated with the key is `null`.
100
98
101
99
## Examples
102
100
The following code example shows how to implement and use the <xref:System.Collections.Specialized.NameObjectCollectionBase> class.
Copy file name to clipboardExpand all lines: xml/System.Collections.Specialized/NameValueCollection.xml
+1-3
Original file line number
Diff line number
Diff line change
@@ -76,9 +76,7 @@
76
76
`null` is allowed as a key or as a value.
77
77
78
78
> [!CAUTION]
79
-
> The <xref:System.Collections.Specialized.NameValueCollection.Get%2A> method does not distinguish between `null` which is returned because the specified key is not found and `null` which is returned because the value associated with the key is `null`.
80
-
81
-
79
+
> The <xref:System.Collections.Specialized.NameValueCollection.Get%2A> method does not distinguish between `null` that's returned because the specified key is not found and `null` that's returned because the value associated with the key is `null`.
Copy file name to clipboardExpand all lines: xml/System.Collections/ArrayList.xml
+2-2
Original file line number
Diff line number
Diff line change
@@ -1911,8 +1911,8 @@ This method is an `O(1)` operation.
1911
1911
<Docs>
1912
1912
<paramname="index">The zero-based <seecref="T:System.Collections.ArrayList" /> index at which the range starts.</param>
1913
1913
<paramname="count">The number of elements in the range.</param>
1914
-
<summary>Returns an <seecref="T:System.Collections.ArrayList" /> which represents a subset of the elements in the source <seecref="T:System.Collections.ArrayList" />.</summary>
1915
-
<returns>An <seecref="T:System.Collections.ArrayList" /> which represents a subset of the elements in the source <seecref="T:System.Collections.ArrayList" />.</returns>
1914
+
<summary>Returns an <seecref="T:System.Collections.ArrayList" /> that represents a subset of the elements in the source <seecref="T:System.Collections.ArrayList" />.</summary>
1915
+
<returns>An <seecref="T:System.Collections.ArrayList" /> that represents a subset of the elements in the source <seecref="T:System.Collections.ArrayList" />.</returns>
Copy file name to clipboardExpand all lines: xml/System.Collections/Hashtable.xml
+6-6
Original file line number
Diff line number
Diff line change
@@ -652,7 +652,7 @@ Each element is a key/value pair stored in a <xref:System.Collections.Dictionary
652
652
</Parameters>
653
653
<Docs>
654
654
<paramname="d">The <seecref="T:System.Collections.IDictionary" /> object to copy to a new <seecref="T:System.Collections.Hashtable" /> object.</param>
655
-
<paramname="loadFactor">A number in the range from 0.1 through 1.0 that is multiplied by the default value which provides the best performance. The result is the maximum ratio of elements to buckets.</param>
655
+
<paramname="loadFactor">A number in the range from 0.1 through 1.0 that is multiplied by the default value that provides the best performance. The result is the maximum ratio of elements to buckets.</param>
656
656
<summary>Initializes a new instance of the <seecref="T:System.Collections.Hashtable" /> class by copying the elements from the specified dictionary to the new <seecref="T:System.Collections.Hashtable" /> object. The new <seecref="T:System.Collections.Hashtable" /> object has an initial capacity equal to the number of elements copied, and uses the specified load factor, and the default hash code provider and comparer.</summary>
657
657
<remarks>
658
658
<formattype="text/markdown"><![CDATA[
@@ -934,7 +934,7 @@ Each element is a key/value pair stored in a <xref:System.Collections.Dictionary
934
934
</Parameters>
935
935
<Docs>
936
936
<paramname="capacity">The approximate number of elements that the <seecref="T:System.Collections.Hashtable" /> object can initially contain.</param>
937
-
<paramname="loadFactor">A number in the range from 0.1 through 1.0 that is multiplied by the default value which provides the best performance. The result is the maximum ratio of elements to buckets.</param>
937
+
<paramname="loadFactor">A number in the range from 0.1 through 1.0 that is multiplied by the default value that provides the best performance. The result is the maximum ratio of elements to buckets.</param>
938
938
<summary>Initializes a new, empty instance of the <seecref="T:System.Collections.Hashtable" /> class using the specified initial capacity and load factor, and the default hash code provider and comparer.</summary>
939
939
<remarks>
940
940
<formattype="text/markdown"><![CDATA[
@@ -1233,7 +1233,7 @@ Each element is a key/value pair stored in a <xref:System.Collections.Dictionary
1233
1233
</Parameters>
1234
1234
<Docs>
1235
1235
<paramname="d">The <seecref="T:System.Collections.IDictionary" /> object to copy to a new <seecref="T:System.Collections.Hashtable" /> object.</param>
1236
-
<paramname="loadFactor">A number in the range from 0.1 through 1.0 that is multiplied by the default value which provides the best performance. The result is the maximum ratio of elements to buckets.</param>
1236
+
<paramname="loadFactor">A number in the range from 0.1 through 1.0 that is multiplied by the default value that provides the best performance. The result is the maximum ratio of elements to buckets.</param>
1237
1237
<paramname="equalityComparer">The <seecref="T:System.Collections.IEqualityComparer" /> object that defines the hash code provider and the comparer to use with the <seecref="T:System.Collections.Hashtable" />.
1238
1238
1239
1239
-or-
@@ -1435,7 +1435,7 @@ Each element is a key/value pair stored in a <xref:System.Collections.Dictionary
1435
1435
</Parameters>
1436
1436
<Docs>
1437
1437
<paramname="capacity">The approximate number of elements that the <seecref="T:System.Collections.Hashtable" /> object can initially contain.</param>
1438
-
<paramname="loadFactor">A number in the range from 0.1 through 1.0 that is multiplied by the default value which provides the best performance. The result is the maximum ratio of elements to buckets.</param>
1438
+
<paramname="loadFactor">A number in the range from 0.1 through 1.0 that is multiplied by the default value that provides the best performance. The result is the maximum ratio of elements to buckets.</param>
1439
1439
<paramname="equalityComparer">The <seecref="T:System.Collections.IEqualityComparer" /> object that defines the hash code provider and the comparer to use with the <seecref="T:System.Collections.Hashtable" />.
1440
1440
1441
1441
-or-
@@ -1550,7 +1550,7 @@ Each element is a key/value pair stored in a <xref:System.Collections.Dictionary
1550
1550
</Parameters>
1551
1551
<Docs>
1552
1552
<paramname="d">The <seecref="T:System.Collections.IDictionary" /> object to copy to a new <seecref="T:System.Collections.Hashtable" /> object.</param>
1553
-
<paramname="loadFactor">A number in the range from 0.1 through 1.0 that is multiplied by the default value which provides the best performance. The result is the maximum ratio of elements to buckets.</param>
1553
+
<paramname="loadFactor">A number in the range from 0.1 through 1.0 that is multiplied by the default value that provides the best performance. The result is the maximum ratio of elements to buckets.</param>
1554
1554
<paramname="hcp">The <seecref="T:System.Collections.IHashCodeProvider" /> object that supplies the hash codes for all keys in the <seecref="T:System.Collections.Hashtable" />.
1555
1555
1556
1556
-or-
@@ -1660,7 +1660,7 @@ Each element is a key/value pair stored in a <xref:System.Collections.Dictionary
1660
1660
</Parameters>
1661
1661
<Docs>
1662
1662
<paramname="capacity">The approximate number of elements that the <seecref="T:System.Collections.Hashtable" /> object can initially contain.</param>
1663
-
<paramname="loadFactor">A number in the range from 0.1 through 1.0 that is multiplied by the default value which provides the best performance. The result is the maximum ratio of elements to buckets.</param>
1663
+
<paramname="loadFactor">A number in the range from 0.1 through 1.0 that is multiplied by the default value that provides the best performance. The result is the maximum ratio of elements to buckets.</param>
1664
1664
<paramname="hcp">The <seecref="T:System.Collections.IHashCodeProvider" /> object that supplies the hash codes for all keys in the <seecref="T:System.Collections.Hashtable" />.
Copy file name to clipboardExpand all lines: xml/System.Diagnostics.Metrics/MeterListener.xml
+2-2
Original file line number
Diff line number
Diff line change
@@ -274,8 +274,8 @@
274
274
</Parameters>
275
275
<Docs>
276
276
<typeparamname="T">The type of the numeric measurement.</typeparam>
277
-
<paramname="measurementCallback">The callback which can be used to get measurement recording of numeric type T.</param>
278
-
<summary>Sets a callback for a specific numeric type to get the measurement recording notification from all instruments which enabled listening and was created with the same specified numeric type.
277
+
<paramname="measurementCallback">The callback that can be used to get measurement recording of numeric type T.</param>
278
+
<summary>Sets a callback for a specific numeric type to get the measurement recording notification from all instruments that enabled listening and were created with the same specified numeric type.
279
279
If a measurement of type T is recorded and a callback of type T is registered, that callback will be used.</summary>
Copy file name to clipboardExpand all lines: xml/System.Diagnostics/DiagnosticSource.xml
+3-3
Original file line number
Diff line number
Diff line change
@@ -144,8 +144,8 @@ If there is expensive setup for the notification, you can call IsEnabled before
144
144
</Parameters>
145
145
<Docs>
146
146
<paramname="name">The name of the event being written.</param>
147
-
<paramname="arg1">An object that represents the additional context for IsEnabled. Consumers should expect to receive <seelangword="null" /> which may indicate that producer called pure IsEnabled(string) to check if consumer wants to get notifications for such events at all. Based on that, producer may call IsEnabled(string, object, object) again with non-<seelangword="null" /> context.</param>
148
-
<paramname="arg2">Optional. An object that represents the additional context for IsEnabled. <seelangword="null" /> by default. Consumers should expect to receive <seelangword="null" /> which may indicate that producer called pure IsEnabled(string) or producer passed all necessary context in <paramrefname="arg1" />.</param>
147
+
<paramname="arg1">An object that represents the additional context for IsEnabled. Consumers should expect to receive <seelangword="null" />, which might indicate that producer called pure IsEnabled(string) to check if consumer wants to get notifications for such events at all. Based on that, producer may call IsEnabled(string, object, object) again with non-<seelangword="null" /> context.</param>
148
+
<paramname="arg2">Optional. An object that represents the additional context for IsEnabled. <seelangword="null" /> by default. Consumers should expect to receive <seelangword="null" />, which might indicate that producer called pure IsEnabled(string) or producer passed all necessary context in <paramrefname="arg1" />.</param>
149
149
<summary>Verifies it the notification event is enabled.</summary>
150
150
<returns>
151
151
<seelangword="true" /> if the notification event is enabled, <seelangword="false" /> otherwise.</returns>
@@ -546,7 +546,7 @@ Consumers can access <xref:System.Diagnostics.Activity.Current?displayProperty=n
546
546
</Parameters>
547
547
<Docs>
548
548
<paramname="name">The name of the event being written.</param>
549
-
<paramname="value">An object that represents the value being passed as a payload for the event. This is often an anonymous type which contains several sub-values.</param>
549
+
<paramname="value">An object that represents the value being passed as a payload for the event. This is often an anonymous type that contains several subvalues.</param>
550
550
<summary>Provides a generic way of logging complex payloads.
0 commit comments