Click or drag to resize

ExtensionsCloningDeepCloneT Method

Note: This API is now obsolete.

Namespace:  Cauldron.Activator
Assembly:  Cauldron.Activator (in Cauldron.Activator.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
[ObsoleteAttribute("Use Mapster instead")]
public static T DeepClone<T>(
	this T source
)
where T : class

Parameters

source
Type: T
The source object

Type Parameters

T
The type of the source

Return Value

Type: T
Returns the clone of source

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionsource is null
See Also