What problem does it solve?
This Skill provides a high-performance, AOT-compliant alternative to traditional .NET reflection, eliminating runtime overhead by using C# source generators.
Core Features & Use Cases
- Source-Generated Reflection: Generate reflection code at compile time for faster, zero-allocation property access.
- Assembly Info Generation: Automatically create static classes with build constants from project properties.
- JSON Serialization: Integrate reflection-free JSON serialization using
ReflectorJsonConverter.
- Use Case: Integrate Shiny Reflector into your .NET application to significantly speed up property access and serialization, especially in performance-critical scenarios or when targeting AOT compilation.
Quick Start
Add the Shiny.Reflector NuGet package to your project and mark your classes with the [Reflector] attribute.