I\'m wondering if I can know how long in bytes for a string in C#, anyone know?
string
From MSDN:
A String object is a sequential collection of System.Char objects that represent a string.
String
System.Char
So you can use this:
var howManyBytes = yourString.Length * sizeof(Char);