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.
Sachin SinghRank #66 · 26.2K reputationPosted May 13, 2022, 9:50 AM EDT
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted May 13, 2022, 12:11 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted May 13, 2022, 10:07 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts