3
Answers

public sealed class ArrayBufferWriter<T>

hanna Meyetr

hanna Meyetr

4y
1.4k
1
 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)