From String.Clone()to MSDN :
The return value is not an independent copy of this instance; this is just another representation of the same data. Use the Copy or CopyTo method to create a separate String object with the same value as this instance.
Because the Clone method simply returns an existing instance of the string, there is no reason to call it directly .
I understand that String is a reference type, meaning you ever get a reference to a string object when a string is called.
So why does String.Clone () exist? What is the purpose?
source
share