net_automatic_interface
dunet
net_automatic_interface | dunet | |
---|---|---|
1 | 3 | |
49 | 475 | |
- | - | |
7.8 | 8.5 | |
4 days ago | 14 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.
net_automatic_interface
-
Creating interfaces from a class automatically
I dislike that modern Asp.Net forces me to create new interfaces for every service I want to register - it helps with testing and modularity, but it's annoying because each change to the service has also propagated to the interface - creating lots of manual work. I finally managed to scratch my itch and write a Source Generator which creates an Interface from a Class definition ,without the need for any manual work: codecentric/net_automatic_interface: .Net Core Source Generator for Automatic Interfaces (github.com)
dunet
-
Rolled my own Result<T,E> type that seems to work better than others.
BUT It is possible to implement it in a pretty good way. The main issue with the majority of existing libraries is that they're not able to guarantee that Error variant matching is exhaustive. Thus I'd recommend the usage of code generators libraries (https://github.com/domn1995/dunet looks like a good choice to start with) to build Result and Error(s) unions in a proper way
-
How do you live without tagged union types?
Or use something like dunet https://github.com/domn1995/dunet
- Dunet: C# discriminated union source generator
What are some alternatives?
GodotOnReady - A C# Source Generator that adds convenient onready-like features to your C# scripts in Godot Mono (3.x) without any reflection.
OneOf - Easy to use F#-like ~discriminated~ unions for C# with exhaustive compile time matching
ResXFileCodeGenerator - VocaDb.ResXFileCodeGenerator is a C# source generator to generate strongly-typed resource classes for looking up localized strings.
csharp-combinators - Experiments to understand and find practical use cases for combinators.
csharplang - The official repo for the design of the C# programming language
ZeroQL - C# GraphQL client with Linq-like syntax
plato - A simple and efficient cross-platform programming language.
mapperly - A .NET source generator for generating object mappings. No runtime reflection.
func - Library to extend C#'s functional programming capabilities
stronginject - compile time dependency injection for .NET
ClosedTypeHierarchyDiagnosticSuppressor - Suppresses exhaustiveness warnings for switching (switch statement or expression) on closed type hierarchies