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/Index.xml
+73-38Lines changed: 73 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,21 @@
27
27
</Attribute>
28
28
</Attributes>
29
29
<Docs>
30
-
<summary>To be added.</summary>
31
-
<remarks>To be added.</remarks>
30
+
<summary>Represent a type can be used to index a collection either from the start or the end.</summary>
31
+
<remarks>
32
+
<formattype="text/markdown"><![CDATA[
33
+
34
+
### Remarks
35
+
36
+
`Index` is used by the C# compiler to support the new index syntax:
37
+
38
+
```csharp
39
+
int[] someArray = new int[5] { 1, 2, 3, 4, 5 };
40
+
int lastElement = someArray[^1]; // lastElement = 5
41
+
```
42
+
43
+
]]></format>
44
+
</remarks>
32
45
</Docs>
33
46
<Members>
34
47
<MemberMemberName=".ctor">
@@ -52,10 +65,20 @@
52
65
<ParameterName="fromEnd"Type="System.Boolean" />
53
66
</Parameters>
54
67
<Docs>
55
-
<paramname="value">To be added.</param>
56
-
<paramname="fromEnd">To be added.</param>
57
-
<summary>To be added.</summary>
58
-
<remarks>To be added.</remarks>
68
+
<paramname="value">The index value. It has to be greater or equal than zero.</param>
69
+
<paramname="fromEnd">A boolean indicating if the index is from the start (<seelangword="false" />) or from the end (<seelangword="true" />) of a collection.</param>
70
+
<summary>Initializes a new <seecref="T:System.Index" /> with a specified index position and a value that indicates if the index is from the start or the end of a collection.</summary>
71
+
<remarks>
72
+
<formattype="text/markdown">
73
+
<![CDATA[
74
+
75
+
### Remarks
76
+
77
+
If the <see cref="T:System.Index" /> is constructed from the end, an index value of 1 points to the last element, and an index value of 0 points beyond last element.
78
+
79
+
]]>
80
+
</format>
81
+
</remarks>
59
82
</Docs>
60
83
</Member>
61
84
<MemberMemberName="End">
@@ -78,8 +101,8 @@
78
101
<ReturnType>System.Index</ReturnType>
79
102
</ReturnValue>
80
103
<Docs>
81
-
<summary>To be added.</summary>
82
-
<value>To be added.</value>
104
+
<summary>Gets an <seecref="T:System.Index" /> that points beyond the last element.</summary>
105
+
<value>an <seecref="T:System.Index" /> that points beyond the last element.</value>
83
106
<remarks>To be added.</remarks>
84
107
</Docs>
85
108
</Member>
@@ -109,9 +132,9 @@
109
132
<ParameterName="other"Type="System.Index" />
110
133
</Parameters>
111
134
<Docs>
112
-
<paramname="other">To be added.</param>
113
-
<summary>To be added.</summary>
114
-
<returns>To be added.</returns>
135
+
<paramname="other">The object to compare with this instance.</param>
136
+
<summary>Returns a value that indicates whether the current object is equal to another <seecref="T:System.Index" /> object.</summary>
137
+
<returns><seelangword="true" /> if the current Index object is equal to <paramrefname="other" />; <seelangword="false" /> otherwise.</returns>
115
138
<remarks>To be added.</remarks>
116
139
</Docs>
117
140
</Member>
@@ -138,9 +161,9 @@
138
161
<ParameterName="value"Type="System.Object" />
139
162
</Parameters>
140
163
<Docs>
141
-
<paramname="value">To be added.</param>
142
-
<summary>To be added.</summary>
143
-
<returns>To be added.</returns>
164
+
<paramname="value">An object to compare with this instance.</param>
165
+
<summary>Indicates whether the current Index object is equal to a specified object.</summary>
166
+
<returns><seelangword="true" /> if <paramrefname="value" /> is of type <seecref="T:System.Index" /> and is equal to the current instance; <seelangword="false" /> otherwise.</returns>
144
167
<remarks>To be added.</remarks>
145
168
</Docs>
146
169
</Member>
@@ -167,9 +190,9 @@
167
190
<ParameterName="value"Type="System.Int32" />
168
191
</Parameters>
169
192
<Docs>
170
-
<paramname="value">To be added.</param>
171
-
<summary>To be added.</summary>
172
-
<returns>To be added.</returns>
193
+
<paramname="value">The index value from the end of a collection.</param>
194
+
<summary>Creates an <seecref="T:System.Index" /> from the end of a collection at a specified index position.</summary>
195
+
<returns>The Index value.</returns>
173
196
<remarks>To be added.</remarks>
174
197
</Docs>
175
198
</Member>
@@ -196,9 +219,9 @@
196
219
<ParameterName="value"Type="System.Int32" />
197
220
</Parameters>
198
221
<Docs>
199
-
<paramname="value">To be added.</param>
200
-
<summary>To be added.</summary>
201
-
<returns>To be added.</returns>
222
+
<paramname="value">The index position from the start of a collection.</param>
223
+
<summary>Create an <seecref="T:System.Index" /> from the specified index at the start of a collection.</summary>
224
+
<returns>The index value.</returns>
202
225
<remarks>To be added.</remarks>
203
226
</Docs>
204
227
</Member>
@@ -223,8 +246,8 @@
223
246
</ReturnValue>
224
247
<Parameters />
225
248
<Docs>
226
-
<summary>To be added.</summary>
227
-
<returns>To be added.</returns>
249
+
<summary>Returns the hash code for this instance.</summary>
250
+
<returns>The hash code.</returns>
228
251
<remarks>To be added.</remarks>
229
252
</Docs>
230
253
</Member>
@@ -251,10 +274,22 @@
251
274
<ParameterName="length"Type="System.Int32" />
252
275
</Parameters>
253
276
<Docs>
254
-
<paramname="length">To be added.</param>
255
-
<summary>To be added.</summary>
256
-
<returns>To be added.</returns>
257
-
<remarks>To be added.</remarks>
277
+
<paramname="length">The length of the collection that the Index will be used with. Must be a positive value.</param>
278
+
<summary>Calculates the offset from the start using the given collection length.</summary>
279
+
<returns>The offset.</returns>
280
+
<remarks>
281
+
<formattype="text/markdown">
282
+
<![CDATA[
283
+
284
+
## Remarks
285
+
286
+
For performance reasons, this method does not validate if `length` or the returned value are negative. It also doesn't validate if the returned value is greater than `length`.
287
+
288
+
Collections are not expected to have a non-negative length/count. If this method's returned offset is negative and is then used to index a collection, the runtime will throw <xref:System.ArgumentOutOfRangeException>, which will have the same effect as validation.
289
+
290
+
]]>
291
+
</format>
292
+
</remarks>
258
293
</Docs>
259
294
</Member>
260
295
<MemberMemberName="IsFromEnd">
@@ -277,8 +312,8 @@
277
312
<ReturnType>System.Boolean</ReturnType>
278
313
</ReturnValue>
279
314
<Docs>
280
-
<summary>To be added.</summary>
281
-
<value>To be added.</value>
315
+
<summary>Gets a value that indicates whether the index is from the start or the end.</summary>
316
+
<value><seelangword="true" /> if the Index is from the end; otherwise, <see. langword="false" />.</value>
282
317
<remarks>To be added.</remarks>
283
318
</Docs>
284
319
</Member>
@@ -305,9 +340,9 @@
305
340
<ParameterName="value"Type="System.Int32" />
306
341
</Parameters>
307
342
<Docs>
308
-
<paramname="value">To be added.</param>
309
-
<summary>To be added.</summary>
310
-
<returns>To be added.</returns>
343
+
<paramname="value">The integer to convert.</param>
344
+
<summary>Converts integer number to an Index.</summary>
345
+
<returns>An Index representing the integer.</returns>
311
346
<remarks>To be added.</remarks>
312
347
</Docs>
313
348
</Member>
@@ -331,8 +366,8 @@
331
366
<ReturnType>System.Index</ReturnType>
332
367
</ReturnValue>
333
368
<Docs>
334
-
<summary>To be added.</summary>
335
-
<value>To be added.</value>
369
+
<summary>Gets an <seecref="T:System.Index" /> that points to the first element of a collection.</summary>
370
+
<value>An instance that points to the first element of a collection.</value>
336
371
<remarks>To be added.</remarks>
337
372
</Docs>
338
373
</Member>
@@ -357,8 +392,8 @@
357
392
</ReturnValue>
358
393
<Parameters />
359
394
<Docs>
360
-
<summary>To be added.</summary>
361
-
<returns>To be added.</returns>
395
+
<summary>Returns the string representation of the current <seecref="T:System.Index" /> instance.</summary>
396
+
<returns>The string representation of the <seecref="T:System.Index" />.</returns>
Copy file name to clipboardExpand all lines: xml/System/Progress`1.xml
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,7 @@
125
125
<paramname="handler">A handler to invoke for each reported progress value. This handler will be invoked in addition to any delegates registered with the <seecref="E:System.Progress`1.ProgressChanged" /> event. Depending on the <seecref="T:System.Threading.SynchronizationContext" /> instance captured by the <seecref="T:System.Progress`1" /> at construction, it is possible that this handler instance could be invoked concurrently with itself.</param>
126
126
<summary>Initializes the <seecref="T:System.Progress`1" /> object with the specified callback.</summary>
127
127
<remarks>To be added.</remarks>
128
+
<exceptioncref="T:System.ArgumentNullException"><paramrefname="handler" /> is <seelangword="null" /> (<seelangword="Nothing" /> in Visual Basic).</exception>
0 commit comments