Skip to content

Clarify MobileFormatter collection type limitations in docs#4822

Merged
rockfordlhotka merged 2 commits intomainfrom
claude/update-csla-docs-ErH0S
Feb 14, 2026
Merged

Clarify MobileFormatter collection type limitations in docs#4822
rockfordlhotka merged 2 commits intomainfrom
claude/update-csla-docs-ErH0S

Conversation

@rockfordlhotka
Copy link
Member

Summary

Updated documentation to clarify that standard .NET collection types (List<T>, Dictionary<K,V>, etc.) are not directly serializable by MobileFormatter and SerializationInfo, and to guide users toward appropriate alternatives.

Key Changes

  • serialization.md: Removed misleading statement that MobileFormatter supports List<T> and Dictionary<K,V>. Added warning box clarifying that standard collection types are not directly serializable and recommending MobileList<T>, MobileDictionary<K,V>, or custom serializers as alternatives.

  • Upgrading to CSLA 9.md: Added warning box documenting that generic collection types beyond the explicitly supported list (such as List<string>, Dictionary<K,V>) are not directly serializable by SerializationInfo, with guidance on using CSLA collection types or custom serializers.

Details

These documentation updates correct a gap in guidance that could lead developers to attempt using unsupported collection types in serializable business objects. The changes direct users to the proper solutions: CSLA's built-in mobile collection types or custom serializer registration.

https://claude.ai/code/session_011R3Y2CSgCZrDwdVacjARaW

Remove List<int> from the list of supported SerializationInfo types in
the CSLA 9 upgrade guide, and correct the serialization.md claim that
List<T> and Dictionary<K,V> are supported. These standard .NET
collection types are not directly serializable - users should use
MobileList<T> or MobileDictionary<K,V> from Csla.Core instead.

Fixes #4680

https://claude.ai/code/session_011R3Y2CSgCZrDwdVacjARaW
CslaBinaryWriter/Reader explicitly handle List<int> (CslaKnownTypes.ListOfInt),
so it IS a valid type for use in custom serializers via SerializationInfo.AddValue.
Updated the warning to clarify that other generic collection types (List<string>,
Dictionary<K,V>, etc.) are not supported.

https://claude.ai/code/session_011R3Y2CSgCZrDwdVacjARaW
@rockfordlhotka rockfordlhotka merged commit 2d6e439 into main Feb 14, 2026
1 check passed
@rockfordlhotka rockfordlhotka deleted the claude/update-csla-docs-ErH0S branch February 14, 2026 21:24
@rockfordlhotka rockfordlhotka linked an issue Feb 14, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version 9.0: List<int> seems to always be nulled in transit

2 participants