DynObj Module
This module contains lots of API functions for DynamicObj. These functions are not static methods on the DynamicObj type itself because that type is designed to be inherited from, and a lot of these functions might not make sense as static methods on inheriting types.
Functions and values
Function or value | Description | ||
Full Usage:
combine first second
Parameters:
DynamicObj
-
second : DynamicObj
-
Returns: DynamicObj
|
This function mutates the first input DynamicObj
|
||
Full Usage:
format dynObj
Parameters:
DynamicObj
-
The DynamicObj for which to generate a formatted string for
Returns: string
|
|||
Full Usage:
ofArray dynamicProperties
Parameters:
(string * obj) array
-
Returns: DynamicObj
|
|||
Full Usage:
ofDict dynamicProperties
Parameters:
Dictionary<string, obj>
-
The dictionary with the dynamic properties
Returns: DynamicObj
|
|
||
Full Usage:
ofList dynamicProperties
Parameters:
(string * obj) list
-
Returns: DynamicObj
|
|||
Full Usage:
ofSeq dynamicProperties
Parameters:
(string * obj) seq
-
Returns: DynamicObj
|
|||
Full Usage:
print dynObj
Parameters:
DynamicObj
-
The DynamicObj for which to print a formatted string for
|
|
||
Full Usage:
removeProperty propertyName dynObj
Parameters:
string
-
The name of the property to remove
dynObj : DynamicObj
-
The DynamicObj to remove the property from
|
This function mutates the input DynamicObj
|
||
Full Usage:
setOptionalProperty propertyName propertyValue dynObj
Parameters:
string
-
The name of the property to set
propertyValue : 'TPropertyValue option
-
The value of the property to set
dynObj : DynamicObj
-
The DynamicObj to set the property on
|
This function mutates the input DynamicObj
|
||
Full Usage:
setOptionalPropertyBy propertyName propertyValue mapping dynObj
Parameters:
string
-
The name of the property to set
propertyValue : 'TPropertyValue option
-
The value of the property to set
mapping : 'TPropertyValue -> 'UPropertyValue
-
A function to apply to the property value before setting it on the DynamicObj
dynObj : DynamicObj
-
The DynamicObj to set the property on
|
This function mutates the input DynamicObj
|
||
Full Usage:
setProperty propertyName propertyValue dynObj
Parameters:
string
-
The name of the dynamic property to set
propertyValue : 'TPropertyValue
-
The value of the dynamic property to set
dynObj : DynamicObj
-
The DynamicObj to set the property on
|
This function mutates the input DynamicObj
|
||
Full Usage:
tryGetPropertyValue propertyName dynObj
Parameters:
string
-
The name of the property to get
dynObj : DynamicObj
-
The DynamicObj to get the property from
Returns: obj option
|
|
||
Full Usage:
tryGetTypedPropertyValue propertyName dynObj
Parameters:
string
-
the name of the property to get
dynObj : DynamicObj
-
the input DynamicObj
Returns: 'TPropertyValue option
Modifiers: inline Type parameters: 'TPropertyValue |
|
||
Full Usage:
withOptionalProperty propertyName propertyValue dynObj
Parameters:
string
-
The name of the property to set
propertyValue : 'TPropertyValue option
-
The value of the property to set
dynObj : 'a
-
The DynamicObj to set the property on
Returns: 'a
Modifiers: inline Type parameters: 'TPropertyValue, 'a |
This function mutates the input DynamicObj
|
||
Full Usage:
withOptionalPropertyBy propertyName propertyValue mapping dynObj
Parameters:
string
-
The name of the property to set
propertyValue : 'TPropertyValue option
-
The value of the property to set
mapping : 'TPropertyValue -> 'UPropertyValue
-
A function to apply to the property value before setting it on the DynamicObj
dynObj : 'a
-
The DynamicObj to set the property on
Returns: 'a
Modifiers: inline Type parameters: 'TPropertyValue, 'UPropertyValue, 'a |
This function mutates the input DynamicObj
|
||
Full Usage:
withProperty propertyName propertyValue dynObj
Parameters:
string
-
The name of the property to set
propertyValue : 'TPropertyValue
-
The value of the property to set
dynObj : 'a
-
The DynamicObj to set the property on
Returns: 'a
Modifiers: inline Type parameters: 'TPropertyValue, 'a |
This function mutates the input DynamicObj
|
||
Full Usage:
withoutProperty propertyName dynObj
Parameters:
string
-
The name of the property to remove
dynObj : 'a
-
The DynamicObj to remove the property from
Returns: 'a
Modifiers: inline Type parameters: 'a |
This function mutates the input DynamicObj
|