AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

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

Creates a shallow clone of the specified object by copying all public writable properties.

Namespace:  AdvantageCMS.Core.Utils
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static T Clone<T>(
	T obj
)

Type Parameters

T
The type of object to clone. Must be a reference type with a parameterless constructor.

Parameters

obj
Type: T
The object to clone.

Return Value

A new instance of T with all public writable properties copied from the source.