DynamicObj Type
Constructors
Constructor | Description |
|
|
Instance members
Instance member | Description | ||
Full Usage:
this.DeepCopyProperties
Returns: obj
|
Recursively deep copy a `DynamicObj` instance (or derived class) with **all** (static and dynamic) properties. Reinstantiation - and therefore prevention of reference equality - is possible for `DynamicObj`, `array|list|ResizeArray
|
||
Full Usage:
this.DeepCopyPropertiesTo
Parameters:
'a
-
The target object to copy dynamic members to
?overWrite : bool
-
Whether existing properties on the target object will be overwritten
|
Recursively deep copies **all** (static and dynamic) properties to a **target** `DynamicObj` instance (or derived class). Reinstantiation - and therefore prevention of reference equality - is possible for `DynamicObj`, `array|list|ResizeArray
|
||
Full Usage:
this.GetProperties
Parameters:
bool
-
whether to include instance properties (= 'static' properties on the class)
Returns: KeyValuePair<string, obj> seq
|
|
||
Full Usage:
this.GetPropertyHelpers
Parameters:
bool
-
whether to include instance properties (= 'static' properties on the class)
Returns: PropertyHelper seq
|
|
||
Full Usage:
this.GetPropertyNames
Parameters:
bool
-
Returns: string seq
|
|||
Full Usage:
this.GetPropertyValue
Parameters:
string
-
the name of the property to get
Returns: obj
|
|
||
Full Usage:
this.Properties
|
|||
Full Usage:
this.RemoveProperty
Parameters:
string
-
the name of the property to remove
Returns: bool
|
|
||
Full Usage:
this.SetProperty
Parameters:
string
-
the name of the property to set
propertyValue : obj
-
the value of the property to set
|
|||
|
Copies all dynamic properties to a new `DynamicObj` instance without trying to prevent reference equality. Note that this function does not attempt to do any deep copying. The dynamic properties of the source will be copied as references to the target. If any of those properties are mutable or themselves DynamicObj instances, changes to the properties on the source will be reflected in the target.
|
||
Full Usage:
this.ShallowCopyDynamicPropertiesTo
Parameters:
'a
-
The target object to copy dynamic members to
?overWrite : bool
-
Whether existing properties on the target object will be overwritten
|
Copies all dynamic properties to a target `DynamicObj` instance without trying to prevent reference equality. Note that this function does not attempt to do any deep copying. The dynamic properties of the source will be copied as references to the target. If any of those properties are mutable or themselves DynamicObj instances, changes to the properties on the source will be reflected in the target. If overWrite is set to true, existing properties on the target object will be overwritten.
|
||
Full Usage:
this.TryGetDynamicPropertyHelper
Parameters:
string
-
The name of the property to get the PropertyHelper for
Returns: PropertyHelper option
|
|
||
Full Usage:
this.TryGetPropertyHelper
Parameters:
string
-
The name of the property to get the PropertyHelper for
Returns: PropertyHelper option
|
|
||
Full Usage:
this.TryGetPropertyValue
Parameters:
string
Returns: obj option
|
|||
Full Usage:
this.TryGetStaticPropertyHelper
Parameters:
string
-
The name of the property to get the PropertyHelper for
Returns: PropertyHelper option
|
|
||
Full Usage:
this.TryGetTypedPropertyValue
Parameters:
string
-
the name of the property to get
Returns: 'TPropertyValue option
|
This method is not Fable-compatible and can therefore not be used in code that will be transpiled.
|
Static members
Static member | Description |
Full Usage:
lookup ? name
Parameters:
'a
name : string
Returns: obj
|
|
Full Usage:
(?<-) (lookup, name, value)
Parameters:
'a
name : string
value : 'v
|
|
Full Usage:
DynamicObj.ofDict dynamicProperties
Parameters:
Dictionary<string, obj>
-
The dictionary with the dynamic properties
Returns: DynamicObj
|
|