I have been trying to get some info about stack arrays in C# and only way to allocate this kind of buffer is to use unsafe code
char* buffer = stackalloc char[16];
As a workaround I can make a structure of chars.
struct Buffer16
{
public char c1,c2 //to 16
}
Is there a way to make a buffer not by creating a new type. Create at runtime.
charin C# represents a Unicode character. The data type that represents an 8-bit unsigned integer is calledbyte.