Skip to content

Commit 794a051

Browse files
committed
Deploying to gh-pages from @ f2228f9 🚀
1 parent f42440e commit 794a051

File tree

4 files changed

+69
-69
lines changed

4 files changed

+69
-69
lines changed

index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

reference/dynamicobj-copyutils.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -209,23 +209,23 @@ <h3>
209209
function to deep copy a boxed object (if possible)
210210
The following cases are handled (in this precedence):
211211

212-
- Basic F# types (bool, byte, sbyte, int16, uint16, int, uint, int64, uint64, nativeint, unativeint, float, float32, char, string, unit, decimal)
213-
214-
- ResizeArrays and Dictionaries containing any combination of basic F# types
215-
216-
- Dictionaries containing DynamicObj as keys or values in any combination with DynamicObj or basic F# types as keys or values
217-
218-
- array<DynamicObj>, list<DynamicObj>, ResizeArray<DynamicObj>: These collections of DynamicObj are copied as a new collection with recursively deep copied elements.
219-
220-
- System.ICloneable: If the property implements ICloneable, the Clone() method is called on the property.
221-
222-
- DynamicObj (and derived classes): properties that are themselves DynamicObj instances are deep copied recursively.
223-
if a derived class has static properties (e.g. instance properties), these will be copied as dynamic properties on the new instance.
224-
225-
Note on Classes that inherit from DynamicObj:
226-
227-
Classes that inherit from DynamicObj will match the `DynamicObj` typecheck if they do not implement ICloneable.
228-
The deep copied instances will be cast to DynamicObj with static/instance properties AND dynamic properties all set as dynamic properties.
212+
- Basic F# types (`bool`, `byte`, `sbyte`, `int16`, `uint16`, `int`, `uint`, `int64`, `uint64`, `nativeint`, `unativeint`, `float`, `float32`, `char`, `string`, `unit`, `decimal`)
213+
214+
- `ResizeArrays` and `Dictionaries` containing any combination of basic F# types
215+
216+
- `Dictionaries` containing `DynamicObj` as keys or values in any combination with `DynamicObj` or basic F# types as keys or values
217+
218+
- `array<DynamicObj>`, `list<DynamicObj>`, `ResizeArray<DynamicObj>`: These collections of DynamicObj are copied as a new collection with recursively deep copied elements.
219+
220+
- `System.ICloneable`: If the property implements `ICloneable`, the `Clone()` method is called on the property.
221+
222+
- `DynamicObj` (and derived classes): properties that are themselves `DynamicObj` instances are deep copied recursively.
223+
if a derived class has static properties (e.g. instance properties), these can be copied as dynamic properties on the new instance or ignored.
224+
225+
Note on Classes that inherit from `DynamicObj`:
226+
227+
Classes that inherit from DynamicObj will match the `DynamicObj` typecheck if they do not implement `ICloneable`.
228+
The deep copied instances will be cast to `DynamicObj` with deep copied dynamic properties. Staic/instance properties can be copied as dynamic properties on the new instance or be ignored.
229229
It should be possible to 'recover' the original type by checking if the needed properties exist as dynamic properties,
230230
and then passing them to the class constructor if needed.
231231

reference/dynamicobj-dynamicobj.html

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -266,23 +266,23 @@ <h3>
266266

267267
The following cases are handled (in this precedence):
268268

269-
- Basic F# types (bool, byte, sbyte, int16, uint16, int, uint, int64, uint64, nativeint, unativeint, float, float32, char, string, unit, decimal)
270-
271-
- ResizeArrays and Dictionaries containing any combination of basic F# types
272-
273-
- Dictionaries containing DynamicObj as keys or values in any combination with DynamicObj or basic F# types as keys or values
274-
275-
- array<DynamicObj>, list<DynamicObj>, ResizeArray<DynamicObj>: These collections of DynamicObj are copied as a new collection with recursively deep copied elements.
276-
277-
- System.ICloneable: If the property implements ICloneable, the Clone() method is called on the property.
278-
279-
- DynamicObj (and derived classes): properties that are themselves DynamicObj instances are deep copied recursively.
280-
if a derived class has static properties (e.g. instance properties), these will be copied as dynamic properties on the new instance.
281-
282-
Note on Classes that inherit from DynamicObj:
283-
284-
Classes that inherit from DynamicObj will match the `DynamicObj` typecheck if they do not implement ICloneable.
285-
The deep copied instances will be cast to DynamicObj with static/instance properties AND dynamic properties all set as dynamic properties.
269+
- Basic F# types (`bool`, `byte`, `sbyte`, `int16`, `uint16`, `int`, `uint`, `int64`, `uint64`, `nativeint`, `unativeint`, `float`, `float32`, `char`, `string`, `unit`, `decimal`)
270+
271+
- `ResizeArrays` and `Dictionaries` containing any combination of basic F# types
272+
273+
- `Dictionaries` containing `DynamicObj` as keys or values in any combination with `DynamicObj` or basic F# types as keys or values
274+
275+
- `array<DynamicObj>`, `list<DynamicObj>`, `ResizeArray<DynamicObj>`: These collections of DynamicObj are copied as a new collection with recursively deep copied elements.
276+
277+
- `System.ICloneable`: If the property implements `ICloneable`, the `Clone()` method is called on the property.
278+
279+
- `DynamicObj` (and derived classes): properties that are themselves `DynamicObj` instances are deep copied recursively.
280+
if a derived class has static properties (e.g. instance properties), these can be copied as dynamic properties on the new instance or ignored.
281+
282+
Note on Classes that inherit from `DynamicObj`:
283+
284+
Classes that inherit from DynamicObj will match the `DynamicObj` typecheck if they do not implement `ICloneable`.
285+
The deep copied instances will be cast to `DynamicObj` with deep copied dynamic properties. Staic/instance properties can be copied as dynamic properties on the new instance or be ignored.
286286
It should be possible to 'recover' the original type by checking if the needed properties exist as dynamic properties,
287287
and then passing them to the class constructor if needed.
288288

@@ -396,23 +396,23 @@ <h3>
396396

397397
The following cases are handled (in this precedence):
398398

399-
- Basic F# types (bool, byte, sbyte, int16, uint16, int, uint, int64, uint64, nativeint, unativeint, float, float32, char, string, unit, decimal)
400-
401-
- ResizeArrays and Dictionaries containing any combination of basic F# types
402-
403-
- Dictionaries containing DynamicObj as keys or values in any combination with DynamicObj or basic F# types as keys or values
404-
405-
- array<DynamicObj>, list<DynamicObj>, ResizeArray<DynamicObj>: These collections of DynamicObj are copied as a new collection with recursively deep copied elements.
406-
407-
- System.ICloneable: If the property implements ICloneable, the Clone() method is called on the property.
408-
409-
- DynamicObj (and derived classes): properties that are themselves DynamicObj instances are deep copied recursively.
410-
if a derived class has static properties (e.g. instance properties), these will be copied as dynamic properties on the new instance.
411-
412-
Note on Classes that inherit from DynamicObj:
413-
414-
Classes that inherit from DynamicObj will match the `DynamicObj` typecheck if they do not implement ICloneable.
415-
The deep copied instances will be cast to DynamicObj with static/instance properties AND dynamic properties all set as dynamic properties.
399+
- Basic F# types (`bool`, `byte`, `sbyte`, `int16`, `uint16`, `int`, `uint`, `int64`, `uint64`, `nativeint`, `unativeint`, `float`, `float32`, `char`, `string`, `unit`, `decimal`)
400+
401+
- `ResizeArrays` and `Dictionaries` containing any combination of basic F# types
402+
403+
- `Dictionaries` containing `DynamicObj` as keys or values in any combination with `DynamicObj` or basic F# types as keys or values
404+
405+
- `array<DynamicObj>`, `list<DynamicObj>`, `ResizeArray<DynamicObj>`: These collections of DynamicObj are copied as a new collection with recursively deep copied elements.
406+
407+
- `System.ICloneable`: If the property implements `ICloneable`, the `Clone()` method is called on the property.
408+
409+
- `DynamicObj` (and derived classes): properties that are themselves `DynamicObj` instances are deep copied recursively.
410+
if a derived class has static properties (e.g. instance properties), these can be copied as dynamic properties on the new instance or ignored.
411+
412+
Note on Classes that inherit from `DynamicObj`:
413+
414+
Classes that inherit from DynamicObj will match the `DynamicObj` typecheck if they do not implement `ICloneable`.
415+
The deep copied instances will be cast to `DynamicObj` with deep copied dynamic properties. Staic/instance properties can be copied as dynamic properties on the new instance or be ignored.
416416
It should be possible to 'recover' the original type by checking if the needed properties exist as dynamic properties,
417417
and then passing them to the class constructor if needed.
418418

reference/dynamicobj-dynobj.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,23 +1319,23 @@ <h3>
13191319

13201320
The following cases are handled (in this precedence):
13211321

1322-
- Basic F# types (bool, byte, sbyte, int16, uint16, int, uint, int64, uint64, nativeint, unativeint, float, float32, char, string, unit, decimal)
1323-
1324-
- ResizeArrays and Dictionaries containing any combination of basic F# types
1325-
1326-
- Dictionaries containing DynamicObj as keys or values in any combination with DynamicObj or basic F# types as keys or values
1327-
1328-
- array<DynamicObj>, list<DynamicObj>, ResizeArray<DynamicObj>: These collections of DynamicObj are copied as a new collection with recursively deep copied elements.
1329-
1330-
- System.ICloneable: If the property implements ICloneable, the Clone() method is called on the property.
1331-
1332-
- DynamicObj (and derived classes): properties that are themselves DynamicObj instances are deep copied recursively.
1333-
if a derived class has static properties (e.g. instance properties), these will be copied as dynamic properties on the new instance.
1334-
1335-
Note on Classes that inherit from DynamicObj:
1336-
1337-
Classes that inherit from DynamicObj will match the `DynamicObj` typecheck if they do not implement ICloneable.
1338-
The deep copied instances will be cast to DynamicObj with static/instance properties AND dynamic properties all set as dynamic properties.
1322+
- Basic F# types (`bool`, `byte`, `sbyte`, `int16`, `uint16`, `int`, `uint`, `int64`, `uint64`, `nativeint`, `unativeint`, `float`, `float32`, `char`, `string`, `unit`, `decimal`)
1323+
1324+
- `ResizeArrays` and `Dictionaries` containing any combination of basic F# types
1325+
1326+
- `Dictionaries` containing `DynamicObj` as keys or values in any combination with `DynamicObj` or basic F# types as keys or values
1327+
1328+
- `array<DynamicObj>`, `list<DynamicObj>`, `ResizeArray<DynamicObj>`: These collections of DynamicObj are copied as a new collection with recursively deep copied elements.
1329+
1330+
- `System.ICloneable`: If the property implements `ICloneable`, the `Clone()` method is called on the property.
1331+
1332+
- `DynamicObj` (and derived classes): properties that are themselves `DynamicObj` instances are deep copied recursively.
1333+
if a derived class has static properties (e.g. instance properties), these can be copied as dynamic properties on the new instance or ignored.
1334+
1335+
Note on Classes that inherit from `DynamicObj`:
1336+
1337+
Classes that inherit from DynamicObj will match the `DynamicObj` typecheck if they do not implement `ICloneable`.
1338+
The deep copied instances will be cast to `DynamicObj` with deep copied dynamic properties. Staic/instance properties can be copied as dynamic properties on the new instance or be ignored.
13391339
It should be possible to 'recover' the original type by checking if the needed properties exist as dynamic properties,
13401340
and then passing them to the class constructor if needed.
13411341

0 commit comments

Comments
 (0)