4 lines
99 B
C#
4 lines
99 B
C#
using System.Text;
|
|
|
|
string s = "Hello, world!";
|
|
int byteLength = Encoding.Unicode.GetByteCount(s);
|