Interface IDeepCloneable<T> (3.15.8)

public interface IDeepCloneable<T>

Generic interface for a deeply cloneable type.

Namespace

Google.Protobuf

Assembly

Google.Protobuf.dll

Type Parameter

NameDescription
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()

T Clone()

Creates a deep clone of this object.

Returns
TypeDescription
T

A deep clone of this object.