String.Clone Método
Definição
public:
virtual System::Object ^ Clone();
public object Clone ();
abstract member Clone : unit -> obj
override this.Clone : unit -> obj
Public Function Clone () As Object
Retornos
Esta instância de String.This instance of String.
Implementações
Comentários
O valor de retorno não é uma cópia independente desta instância; é simplesmente outra exibição dos mesmos dados.The return value is not an independent copy of this instance; it is simply another view of the same data. Use o Copy CopyTo método ou para criar um String objeto separado com o mesmo valor dessa instância.Use the Copy or CopyTo method to create a separate String object with the same value as this instance.
Como o Clone método simplesmente retorna a instância de cadeia de caracteres existente, há pouco motivo para chamá-la diretamente.Because the Clone method simply returns the existing string instance, there is little reason to call it directly.