Type Design Performance

Design .NET types for performance. Covers struct vs class decision matrix, sealed by default, readonly structs, ref struct and Span/Memory selection, FrozenDictionary, ValueTask, and collection return types. Use when designing new types and APIs, reviewing code for performance issues, choosing between class, struct, and record, or working with collections and enumerables.

wshaddix 1ab6ea5 15.6 KB Updated

File contents

wshaddix/dotnet-skills/tree/main/skills/csharp-type-design-performance commit 1ab6ea54ed

Frequently asked questions

npx skillmds add wshaddix/type-design-performance