KGy SOFT

ObservableObjectBaseClone Method

KGy SOFT Core Libraries Help
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.

Namespace:  KGySoft.ComponentModel
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.4.0
Syntax

public virtual ObservableObjectBase Clone(
	bool clonePropertyChanged = false
)

Parameters

clonePropertyChanged (Optional)
Type: SystemBoolean
 to clone also the subscribers of the PropertyChanged event; otherwise, . This parameter is optional.
Default value: .

Return Value

Type: ObservableObjectBase
A new object that is a copy of this instance.
See Also

Reference