Shazma Batool

Shazma Batool

  • NA
  • 101
  • 6k

string is reference type or value type

May 13 2022 1:23 PM

I am little confused whether a string datatype is reference type or a value type in C#. On googling, I found that string is a reference type but it behaves as a value type. Any simple example code to get me through this. Thanks


Answers (3)