Skip to content

Commit 7d7e4c5

Browse files
authored
recover dropped content + edits (#3159)
* recover dropped content + edits * Update Range.xml
1 parent 342581e commit 7d7e4c5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

xml/System/Range.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,18 +268,20 @@
268268
<Parameter Name="length" Type="System.Int32" />
269269
</Parameters>
270270
<Docs>
271-
<param name="length">The length of the collection that the range will be used with. <paramref name="length" /> has to be a positive value.</param>
271+
<param name="length">A positive integer that represents the length of the collection that the range will be used with.</param>
272272
<summary>Calculates the start offset and length of the range object using a collection length.</summary>
273-
<returns>To be added.</returns>
273+
<returns>The start offset and length of the range.</returns>
274274
<remarks>
275275
<format type="text/markdown"><![CDATA[
276276
277277
## Remarks
278278
279-
For performance reasons, we don't validate the input length parameter against negative values. It is expected that `Range` will be used with collections which always have non negative length/count. We validate the range is inside the length scope though.
279+
For performance reasons, this method does't validate `length` to ensure that it is not negative. It does ensure that `length` is within the current `Range` instance.
280280
281281
]]></format>
282282
</remarks>
283+
<exception cref="T:System.ArgumentOutOfRangeException">
284+
<paramref name="length" /> is outside the bounds of the current range.</exception>
283285
</Docs>
284286
</Member>
285287
<Member MemberName="Start">

0 commit comments

Comments
 (0)