Interface IDeepCloneable<T> (3.23.0)

public interface IDeepCloneable<T>

Generic interface for a deeply cloneable type.

Namespace

Google.Protobuf

Assembly

Google.Protobuf.dll

Type Parameter

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

T Clone()

Creates a deep clone of this object.

Returns
Type Description
T

A deep clone of this object.