hanna Meyetr

hanna Meyetr

  • NA
  • 12
  • 1.4k

public sealed class ArrayBufferWriter<T>

Jan 25 2021 7:38 PM
 Hi,
 
 i want to use
public sealed class ArrayBufferWriter<T> : System.Buffers.IBufferWriter<T>

https://docs.microsoft.com/en-us/dotnet/api/system.buffers.arraybufferwriter-1?view=net-5.0
Compiler in VisualStudio gives me error CS0122
CS0122 Access to "ArrayBufferWriter " is not possible due to the degree of protection.

var outputBuffer = new ArrayBufferWriter< byte >();
Does anybody knows how to solve this error?
Thanks in advance

Answers (3)