Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion csla-examples/CustomSerializers.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ The `SerializationInfo` class can store the following "primitive" types:
- `Guid`
- `byte[]`
- `char[]`
- `List<int>` (and other primitive type lists)

> ⚠️ Standard .NET collection types such as `List<T>` and `Dictionary<K,V>` are _not_ directly serializable by `MobileFormatter`. Use `MobileList<T>` or `MobileDictionary<K,V>` from `Csla.Core` for serializable collections, or register a custom serializer for your collection type.

## Common Scenarios

Expand Down
5 changes: 3 additions & 2 deletions csla-examples/v10/CustomSerializers.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ The `SerializationInfo` class can store these primitive types:
| Text | `string`, `char`, `char[]` |
| Boolean | `bool` |
| Date/Time | `DateTime`, `DateTimeOffset`, `TimeSpan`, `DateOnly`, `TimeOnly` |
| Other | `Guid`, `byte[]` |
| Collections | `List<T>` of primitive types |
| Other | `Guid`, `byte[]`, `char[]` |
| Nullable | Nullable versions of all above types |

> ⚠️ Standard .NET collection types such as `List<T>` and `Dictionary<K,V>` are _not_ directly serializable by `MobileFormatter`. Use `MobileList<T>` or `MobileDictionary<K,V>` from `Csla.Core` for serializable collections, or register a custom serializer for your collection type.

For complex types, serialize them as JSON strings or implement child object handling.

## Handling Complex Types
Expand Down
3 changes: 2 additions & 1 deletion csla-examples/v9/PocoSerialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,10 @@ The `SerializationInfo` class can store these "primitive" types directly:
- `Guid`
- `byte[]`
- `char[]`
- `List<int>` (and other primitive type lists)
- Nullable versions of the above types

> ⚠️ Standard .NET collection types such as `List<T>` and `Dictionary<K,V>` are _not_ directly serializable by `MobileFormatter`. Use `MobileList<T>` or `MobileDictionary<K,V>` from `Csla.Core` for serializable collections, or register a custom serializer for your collection type.

For complex types (objects, lists of objects), use the child object methods.

## Best Practices
Expand Down