Sahil Dev

Sahil Dev

  • NA
  • 77
  • 7.3k

C# string bytes

Sep 2 2016 12:57 PM

 Can anyone tell me the number of bytes each string takes in C#?

That is: if I have:

  1. string value = "thisIsMyName"  
 
Then, how many bytes does the variable value take? 
 
Because, if I have:
 
If I want to convert to convert value into into a c# byte array how many bytes does it take?

Answers (5)