Interface IDeepCloneable<T>
Generic interface for a deeply cloneable type.
Namespace: Google.Protobuf
Assembly: Google.Protobuf.dll
Syntax
public interface IDeepCloneable<T>
Type Parameters
Name | Description |
---|---|
T | The type itself, returned by the Clone() method. |
Remarks
All generated messages implement this interface, but so do some non-message types.
Additionally, due to the type constraint on T
in IMessage<T>,
it is simpler to keep this as a separate interface.
Methods
Clone()
Creates a deep clone of this object.
Declaration
T Clone()
Returns
Type | Description |
---|---|
T | A deep clone of this object. |