dotnet-csharp-type-design-performance
CommunityDesign .NET types for peak performance.
Authorrudironsoni
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses critical upfront type design choices in .NET that significantly impact application performance and maintainability throughout their lifecycle.
Core Features & Use Cases
- Struct vs. Class Decision Matrix: Guides the selection between
structandclassbased on size, lifetime, and identity. readonly struct: Eliminates defensive copies for immutable value types.ref structandSpan<T>/Memory<T>: Optimizes memory access for stack-allocated or contiguous data.- Collection Type Selection: Recommends
FrozenDictionary,ImmutableDictionary,ConcurrentDictionary, andDictionarybased on usage patterns. - Use Case: When designing a new data structure for high-frequency calculations, this Skill helps determine if a
readonly structor aclassis more appropriate, considering memory allocation and copy costs.
Quick Start
Use the dotnet-csharp-type-design-performance skill to understand when to use a struct versus a class for a new data type.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dotnet-csharp-type-design-performance Download link: https://github.com/rudironsoni/dotnet-agent-harness/archive/main.zip#dotnet-csharp-type-design-performance Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.