Defines an implementation of Clone
- Inheritance:
-
object
Clone
Service objectBase
- Implements:
-
IClone
Service
Constructors
BarsCloneService()
Initializes an instance of the class.
Methods
CreateCloneCore(object, CloneOptions, Type)
Performs the core logic of cloning an object.
Parameter | Type | Description |
---|---|---|
original | object | The original object to be cloned. |
options | Clone |
The options to use when cloning. When not specified, default options will be used. |
defaultType | Type | Optionally defines the default type of object to be created when not specified by |
Returns
- object:
A clone of the original object when possible. Otherwise,
null
or the original object is returned (depending on settings).
IsTransferableMarkupProperty(object, MarkupProperty)
Tests if a System.Windows.Markup.Primitives.MarkupProperty supports transfer.
Parameter | Type | Description |
---|---|---|
source | object | The source object. |
property | MarkupProperty | The property to examine. |
Returns
- bool:
true
if the property can be transferred; otherwisefalse
if it cannot be transferred.
ResolveTargetDependencyProperty(DependencyObject, DependencyObject, DependencyProperty)
Returns the System.Windows.DependencyProperty of the target
which should receive the
value of a System.Windows.DependencyProperty on the source
.
Parameter | Type | Description |
---|---|---|
source | DependencyObject | The source object. |
target | DependencyObject | The target object. |
sourceDependencyProperty | DependencyProperty | The dependency property on the source. |
Returns
- DependencyProperty:
The System.Windows.DependencyProperty to be used by the
target
; otherwisenull
if a target property is unavailable.
TransferDependencyProperty(DependencyObject, DependencyObject, DependencyProperty, DependencyProperty)
Transfers the value of a System.Windows.DependencyProperty on the source to a System.Windows.DependencyProperty on the target.
Parameter | Type | Description |
---|---|---|
source | DependencyObject | The source object. |
target | DependencyObject | The target object. |
sourceDependencyProperty | DependencyProperty | The property on the source. |
targetDependencyProperty | DependencyProperty | The property on the target. |
Inherited Members
-
Clone
Service Base. Can Clone Dependency Property Value(Dependency Object, Dependency Property) -
Clone
Service Base. Create Clone(object) -
Clone
Service Base. Create Clone(object, Clone Options) - CloneServiceBase.CreateClone<T>(object)
- CloneServiceBase.CreateClone<T>(object, CloneOptions)
-
Clone
Service Base. Create Instance(object, Clone Options, Type) -
Clone
Service Base. Get Explicitly Transferred Dependency Properties(Dependency Object) -
Clone
Service Base. Resolve Target Property(object, object, Property Descriptor) -
Clone
Service Base. Transfer Property(object, object, Property Descriptor, Property Descriptor) -
object.
Get Type() -
object.
Memberwise Clone() -
object.
To String() -
object.
Equals(object) -
object.
Equals(object, object) -
object.
Reference Equals(object, object) -
object.
Get Hash Code()