ObservableObjectBaseClone Method
Creates a new object that is a copy of the current instance.
The base implementation clones the internal property storage, the
IsModified property and if
clonePropertyChanged
is
, then also the subscribers of the
PropertyChanged event. It respects the
implementations with some special handling for arrays so arrays can be deep-cloned as well.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public virtual ObservableObjectBase Clone(
bool clonePropertyChanged = false
)
Public Overridable Function Clone (
Optional clonePropertyChanged As Boolean = false
) As ObservableObjectBase
public:
virtual ObservableObjectBase^ Clone(
bool clonePropertyChanged = false
)
abstract Clone :
?clonePropertyChanged : bool
(* Defaults:
let _clonePropertyChanged = defaultArg clonePropertyChanged false
*)
-> ObservableObjectBase
override Clone :
?clonePropertyChanged : bool
(* Defaults:
let _clonePropertyChanged = defaultArg clonePropertyChanged false
*)
-> ObservableObjectBase
- clonePropertyChanged Boolean (Optional)
- to clone also the subscribers of the PropertyChanged event; otherwise, . This parameter is optional.
Default value: .
ObservableObjectBase
A new object that is a copy of this instance.