dotnet / dotnet/dotnet-api-docs

Convert from array

Open
#1,709 1 comment 0 reactions 0 assignees View on GitHub
area-System.Runtime dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

I've just moved perfectly working code from a .NET Core 2.1 project to a .NET Standard 2.0 library project. And there's errors in some places. One of them is that a parameter of type MyType[] cannot be converted to ArraySegment<MyType> anymore. This has worked in .NET Core but does not in .NET Standard. I guess there's some kind of incompatibility between the two and couldn't find it here in the docs. Should probably be mentioned.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: b21ccc1f-64cc-4294-741e-1d91391cd555
* Version Independent ID: 4bafdfb6-a83b-bd56-c0ed-2790f5b9d58d
* Content: [ArraySegment<T> Struct (System)](https://docs.microsoft.com/en-us/dotnet/api/system.arraysegment-1?view=netstandard-2.0)
* 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: @rpetrusha
* Microsoft Alias: **ronpet**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.