locked
size of string in c# - in bytes RRS feed

  • Question

  • Hi,

    How can I check what's the string length size in Bytes?

     

    Thanks,

    Dana

    Wednesday, April 1, 2009 9:14 AM

Answers

  •  int lengthofstring = "my string of unknown length".ToCharArray().Length;

    Wednesday, April 1, 2009 9:23 AM