Shazma Batool

Shazma Batool

  • 1.9k
  • 79
  • 989

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)