MetadataCache..::..Clone<(Of <(<'T>)>)> Method

Clones the specified source.

Namespace:  Tortuga.Anchor.Metadata
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public static T Clone<T>(
	T source,
	CloneOptions options,
	Nullable<int> maxRecursion
)
Public Shared Function Clone(Of T) ( _
	source As T, _
	options As CloneOptions, _
	maxRecursion As Nullable(Of Integer) _
) As T

Type Parameters

T

Parameters

source
Type: T
The source object to copy.
options
Type: Tortuga.Anchor.Metadata..::..CloneOptions
The clone options.
maxRecursion
Type: Nullable<(Of <(<'Int32>)>)>
The maximum recursion. Only applicable when CloneOptions.DeepClone is used.

Return Value

T.

Remarks


This should be used to help create a class's Clone method. It is not intended as a general purpose method and does not cover all possible scenarios.