Category: roslyn
-
Porticle.Enumly
RSCG – Porticle.Enumly name Porticle.Enumly nuget https://www.nuget.org/packages/Porticle.Enumly/ link https://github.com/Machibuse/Porticle.Enumly author Carsten Jendro generate enum-to-enum mappings, so one enum values can be converted to another enum type with matching names or values This is how you can use Porticle.Enumly . The code that you start with is The code that you will use…
-
TinyBDD.MSTest
RSCG – TinyBDD.MSTest name TinyBDD.MSTest nuget https://www.nuget.org/packages/TinyBDD.MSTest/ link https://github.com/JerrettDavis/TinyBDD author Jerrett Davis Optimizing Test Code with BDD Style Testing This is how you can use TinyBDD.MSTest . The code that you start with is The code that you will use is The code that is generated is Code and pdf at…
-
AlephMapper
RSCG – AlephMapper name AlephMapper nuget https://www.nuget.org/packages/AlephMapper/ link https://github.com/Raffinert/AlephMapper author Yevhen Cherkes AlephMapper helps you define LINQ-translatable object mappers for EF Core. It turns a normal C# mapping method into an expression that can be embedded in queries, so your entity-to-DTO projection can run inside the database query instead of after materialization. This…
-
TypedStateBuilder.Generator
RSCG – TypedStateBuilder.Generator name TypedStateBuilder.Generator nuget https://www.nuget.org/packages/TypedStateBuilder.Generator/ link https://github.com/Georgiy-Petrov/TypedStateBuilder.Generator author Georgiy Petrov Generate strongly typed state builders for C# applications, enforced at compile time **Summary of TypedStateBuilder.Generator** **Purpose:** Generates compile-time safe step-by-step builders using the *type-state pattern* — each required property must be set in order before Build() is available, enforced at compile time. **NuGet:**…
-
AssemblyMetadata.Generators
RSCG – AssemblyMetadata.Generators name AssemblyMetadata.Generators nuget https://www.nuget.org/packages/AssemblyMetadata.Generators/ link https://github.com/loresoft/AssemblyMetadata.Generators author LoreSoft Generating assembly metadata attributes at compile time. This is how you can use AssemblyMetadata.Generators . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/AssemblyMetadata.Generators
-
LinkDotNet.Enumeration
RSCG – LinkDotNet.Enumeration name LinkDotNet.Enumeration nuget https://www.nuget.org/packages/LinkDotNet.Enumeration/ link https://github.com/linkdotnet/Enumeration author Steven Giesel Good for replacing enum + switch patterns with string-based enumerations with exhaustive pattern matching. ### Purpose A source code generator that creates string-based enumerations (similar to Java enums / DDD value objects) with exhaustive pattern matching, replacing enum + switch patterns. ### How…
-
GenerateDispose
RSCG – GenerateDispose name GenerateDispose nuget https://www.nuget.org/packages/GenerateDispose/ link https://github.com/ItaiTzur76/GenerateDispose author Itai Tzur GenerateDispose for boilerplate reduction for IDisposable pattern Purpose A Roslyn source generator that replaces the 10+ lines of IDisposable boilerplate code with a single attribute. The code that you start with is The code that you will use is The code that…
-
Maestria.TypeProviders
RSCG – Maestria.TypeProviders name Maestria.TypeProviders nuget https://www.nuget.org/packages/Maestria.TypeProviders/ link https://github.com/MaestriaNet/TypeProviders author Fábio Monteiro Naspolini Generating strong typed code from Excel. This is how you can use Maestria.TypeProviders . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/Maestria.TypeProviders
-
Aigamo.MatchGenerator
RSCG – Aigamo.MatchGenerator name Aigamo.MatchGenerator nuget https://www.nuget.org/packages/Aigamo.MatchGenerator/ link https://github.com/ycanardeau/MatchGenerator author Aigamo Generates exhaustive Match() extension methods for enums and abstract record hierarchies (tagged unions), ensuring compile-time safety — all cases must be handled. How to use 1. Add [GenerateMatch] attribute to an enum or abstract record: [GenerateMatch] public enum CarTypes { None, Dacia, Tesla, BMW,…
-
lomapper
RSCG – lomapper name lomapper nuget https://www.nuget.org/packages/lomapper/ link https://github.com/jdtoon/lomapper author Junaid Desai Generates object mapping code at compile time using source generators . How to use 1. Decorate a partial mapper class with [Mapper] and declare partial mapping methods: “`charp [Mapper] public parial class UserMapper { [MapIgnore(nameof(Person.ID))] public partial PersonDTO Map(Peron entity); } “` 2.…