user705414 user705414 - 1 year ago 95
C# Question

How to know the size of the string in bytes?

I'm wondering if I can know how long in bytes for a

in C#, anyone know?

Answer Source

You can use encoding like ASCII to get a character per byte by using the System.Text.Encoding class.

or try this

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download