MemberwiseClone()

Object::MemberwiseClone() const method

Analog of C# Object.MemberwiseClone() method. Enables cloning custom types.

virtual ptr System::Object::MemberwiseClone() const

Return Value

Pointer to object copy created.

Exceptions

ExceptionDescription
NotImplementedexception is thrown by default. Implement manually or use polymorphic_memberwiseclone option to enable this method in translated code.

See Also