stronginject
roslyn-sdk
stronginject | roslyn-sdk | |
---|---|---|
7 | 7 | |
836 | 491 | |
- | 1.2% | |
0.0 | 7.2 | |
almost 2 years ago | 6 days ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
stronginject
- Reflection -> Source Generated
- What is the most cursed data structure you can think of?
- Injectio - Source Generator for Dependency Injection
-
You probably don't need MediatR
I think StrongInject does exactly that. I have never used it yet though.
-
stronginject VS Pure.DI - a user suggested alternative
2 projects | 12 Oct 2021
-
Is the era of reflection-heavy C# libraries at an end?
Actually DI is perfectly possible without reflection, see https://github.com/YairHalberstadt/stronginject
roslyn-sdk
- Reflection -> Source Generated
-
*ducks*
Here's an example of generating a csv parser that at compile time takes an example csv file, creates a class with properties named after the headers with data types based on whatever data is in the first row. https://github.com/dotnet/roslyn-sdk/blob/main/samples/CSharp/SourceGenerators/SourceGeneratorSamples/CsvGenerator.cs
- Enable Preview Version In Visual Studio 2022
-
How to create a Roslyn Analyser in Jetbrains Rider?
Clone the official repo, branch from that?
-
Genzor, an experimental (code) file/directory generator using the Blazor components model. What do you guys think?
The sample app is currently but working in VS, see https://github.com/dotnet/roslyn-sdk/issues/774.
-
On .NET Episode: C# Source Generators
Source Generator Samples
-
Source generator with dependency
Check the sample project. In particular, note the GeneratePathProperty, GetTargetPathDependsOn and TargetPathWithTargetPlatformMoniker pieces in the csproj file.
What are some alternatives?
jab - C# Source Generator based dependency injection container implementation.
Enum.Source.Generator - A C# source generator to create an enumeration class from an enum type. With this package, you can work on enums very, very fast without using reflection.
Pure.DI - Pure DI for .NET without frameworks!
Apparatus.AOT.Reflection - Reflectionless reflection
csharp-source-generators - A list of C# Source Generators (not necessarily awesome) and associated resources: articles, talks, demos.
Jot - Jot is a library for persisting and applying .NET application state.
ReactiveUI - An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application.
ArchiSteamFarm - C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
ZeroQL - C# GraphQL client with Linq-like syntax
ResXFileCodeGenerator - VocaDb.ResXFileCodeGenerator is a C# source generator to generate strongly-typed resource classes for looking up localized strings.
SqlMarshal - Generates data access using stored procedures
dunet - C# discriminated union source generator