3
Answers

string is reference type or value type

Shazma Batool

Shazma Batool

2y
657
1

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)