Pip-Services-Commons-Dotnet
Public Member Functions | List of all members
PipServices3.Commons.Data.ICloneable Interface Reference

Interface for data objects that are able to create their full binary copy. More...

Inheritance diagram for PipServices3.Commons.Data.ICloneable:
PipServices3.Commons.Data.AnyValue PipServices3.Commons.Data.AnyValueArray PipServices3.Commons.Data.AnyValueMap PipServices3.Commons.Run.Parameters

Public Member Functions

object Clone ()
 Creates a binary clone of this object. More...
 

Detailed Description

Interface for data objects that are able to create their full binary copy.

public class MyClass: IMyClass, ICloneable
{
MyClass() { };
public object clone()
{
var cloneObj = new Object(this);
// Copy every attribute from this to cloneObj here.
...
return cloneObj;
}
}

Member Function Documentation

◆ Clone()

object PipServices3.Commons.Data.ICloneable.Clone ( )

Creates a binary clone of this object.

Returns
a clone of this object.

Implemented in PipServices3.Commons.Data.AnyValueArray, PipServices3.Commons.Data.AnyValueMap, and PipServices3.Commons.Data.AnyValue.


The documentation for this interface was generated from the following file: