DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
Clonable.h
Go to the documentation of this file.
1
5
6#pragma once
7#include "System/Object.h"
8
9namespace DotNetDupe {
10 namespace System {
15 class IClonable {
16 public:
18 virtual ~IClonable() = default;
19
22 virtual Object Clone() = 0;
23 };
24 }
25}
Base object class for DotNetDupe mirroring .NET System.Object.
Supports cloning, which creates a new instance of a class with the same value as an existing instance...
Definition Clonable.h:15
virtual Object Clone()=0
Creates a new object that is a copy of the current instance.
virtual ~IClonable()=default
Virtual destructor for polymorphic cleanup.
Supports all classes in the DotNetDupe class hierarchy.
Definition Object.h:18