Is it possible to use NetworkStream.WriteAsync(ReadOnlyMemory<byte>) under .NET Standard 2.0? #47978
-
Is there any nuget packages contains something stream extensions to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
huoyaoyuan
Feb 8, 2021
Replies: 1 comment 2 replies
-
Packages can provide additional types, but can't extend members on existing type. runtime/src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs Lines 609 to 619 in 1fe9cbf You can copy the default implementation in |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
GF-Huang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Packages can provide additional types, but can't extend members on existing type.
runtime/src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs
Lines 609 to 619 in 1fe9cbf