Interface IDeepCloneable<T> (3.27.1)

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.