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/Range.xml
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -268,18 +268,20 @@
268
268
<ParameterName="length"Type="System.Int32" />
269
269
</Parameters>
270
270
<Docs>
271
-
<paramname="length">The length of the collection that the range will be used with. <paramrefname="length" /> has to be a positive value.</param>
271
+
<paramname="length">A positive integer that represents the length of the collection that the range will be used with.</param>
272
272
<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>
274
274
<remarks>
275
275
<formattype="text/markdown"><![CDATA[
276
276
277
277
## Remarks
278
278
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.
0 commit comments