FluentResult: How to return Result.Fail for Result and Result (generic and nongeneric)
I use FluentResult in C#.
For evaluation, I want to have a function like this:
Is it possible to cast to a generic interface with an interface as a type argument
If I have the following interfaces / classes:
Problem with generic class with a nullable attribute
I have this C# code:
Return derived class from the base class
We are developing an internal NuGet package which contains a ServiceRes
and ServiceRes<T>
classes which can be used to wrap a response from the service layer into a common structure. This is the code that we have currently: