Skip to content

recover dropped content + edits #3159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions xml/System/Range.xml
Original file line number Diff line number Diff line change
Expand Up @@ -268,18 +268,20 @@
<Parameter Name="length" Type="System.Int32" />
</Parameters>
<Docs>
<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>
<param name="length">A positive integer that represents the length of the collection that the range will be used with.</param>
<summary>Calculates the start offset and length of the range object using a collection length.</summary>
<returns>To be added.</returns>
<returns>The start offset and length of the range.</returns>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks

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.
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.

]]></format>
</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="length" /> is outside the bounds of the current range.</exception>
</Docs>
</Member>
<Member MemberName="Start">
Expand Down