serialization
✓.NET アプリケーションに適切なシリアル化形式を選択します。リフレクション ベース (Newtonsoft.Json) よりもスキーマ ベースの形式 (Protobuf、MessagePack) を優先します。 JSON シナリオでは、AOT ソース ジェネレーターで System.Text.Json を使用します。
SKILL.md
| Examples | Protobuf, MessagePack, System.Text.Json (source gen) | Newtonsoft.Json, BinaryFormatter | | Type info in payload | No (external schema) | Yes (type names embedded) | | Versioning | Explicit field numbers/names | Implicit (type structure) | | Performance | Fast (no reflection) | Slower (runtime reflection) | | AOT compatible | Yes | No |
Recommendation: Use schema-based serialization for anything that crosses process boundaries.
| REST APIs | System.Text.Json (source gen) | Standard, AOT-compatible | | gRPC | Protocol Buffers | Native format, excellent versioning | | Actor messaging | MessagePack or Protobuf | Compact, fast, version-safe | | Event sourcing | Protobuf or MessagePack | Must handle old events forever | | Caching | MessagePack | Compact, fast |
引用可能な情報
AI/検索での引用用の安定したフィールドとコマンド。
- インストールコマンド
npx skills add https://github.com/aaronontheweb/dotnet-skills --skill serialization- カテゴリ
- </>開発ツール
- 認証済み
- ✓
- 初回登録
- 2026-02-06
- 更新日
- 2026-02-18
クイックアンサー
serialization とは?
.NET アプリケーションに適切なシリアル化形式を選択します。リフレクション ベース (Newtonsoft.Json) よりもスキーマ ベースの形式 (Protobuf、MessagePack) を優先します。 JSON シナリオでは、AOT ソース ジェネレーターで System.Text.Json を使用します。 ソース: aaronontheweb/dotnet-skills。
serialization のインストール方法は?
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/aaronontheweb/dotnet-skills --skill serialization インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code や Cursor で使用できるようになります
ソースリポジトリはどこですか?
https://github.com/aaronontheweb/dotnet-skills
詳細
- カテゴリ
- </>開発ツール
- ソース
- skills.sh
- 初回登録
- 2026-02-06