MemberwiseClone()

System::MemberwiseClone(T *) function

Performs memberwise cloning using copy constructor.

template<typename T> SmartPtr<Object> System::MemberwiseClone(T *ptr)

Template parameters

ParameterDescription
TClass to be copy-constructed. Subclass information is being lost.

Arguments

ParameterTypeDescription
ptrT *Pointer to the object to clone.

Return Value

Pointer to cloned object.

See Also