dotnet / dotnet/dotnet-api-docs
Behavior when ArraySegment contains entire array
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
When the ArraySegment is created such that it encompases an entire array, does ToArray return the original array or a copy?
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: e5458219-62c9-6e54-353c-a451c8936021
* Version Independent ID: 051b1afc-9a41-416f-a433-8f9195b8be53
* Content: [ArraySegment<T>.ToArray Method (System)](https://docs.microsoft.com/en-us/dotnet/api/system.arraysegment-1.toarray?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DEN-US%26k%3Dk(System.ArraySegment%601.ToArray);k(DevLang-csharp)%26rd%3Dtrue%26f%3D255%26MSPPError%3D-2147217396&view=netcore-2.2)
* Content Source: [xml/System/ArraySegment`1.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System/ArraySegment`1.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.