I am new to C# and can not seem to find a way to do copy a text string from a textbox to a specific starting point in a byte array other than using a loop.
I know I can:
var myBuffer = new byte[20];
myBuffer = ASCIIEncoding.ASCII.GetBytes(textBox.Text);
but how do I start the text at an offset within the array for example at the fourth byte:
starting at myBuffer[3], copy textBox.Text; // Representation of what I need
Is there an elegant solution?