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
Loading
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
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted May 13, 2022, 1:50 PM
Muhammad Imran AnsariPosted May 13, 2022, 4:11 PM
Nitin SontakkePosted May 13, 2022, 2:07 PM