ResultsVH 10.0.0

dotnet add package ResultsVH --version 10.0.0
                    
NuGet\Install-Package ResultsVH -Version 10.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ResultsVH" Version="10.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ResultsVH" Version="10.0.0" />
                    
Directory.Packages.props
<PackageReference Include="ResultsVH" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ResultsVH --version 10.0.0
                    
#r "nuget: ResultsVH, 10.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ResultsVH@10.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ResultsVH&version=10.0.0
                    
Install as a Cake Addin
#tool nuget:?package=ResultsVH&version=10.0.0
                    
Install as a Cake Tool

ResultsVH

The library which provides the set of results

It splits structures to options:

  • Interfaces
  • Implementations

The base of the Results

The base of the Results are:

  • An interface IResult<T, TE>
  • And Implementation: Result<T, TE>

The Interface IResult<out T, out TE>

The code of the interface is

public interface IResult<out T, out TE>
{
    public bool IsSuccess { get; }
    public T? Data { get; }
    public TE? Message { get; }
}

and contains from:

  • Main result: the boolean IsSuccess which returns true or false depending on this either Data or Message will have values.
  • If implementation is used with constructor, which provides data (ses implementation constructors description) - the Data takes value, the Message is set to default and IsSuccess defined as true.
  • If implementation is used with constructor, which provides message (ses implementation constructors description) - the Message takes value, the Data is set to default and IsSuccess defined as false.

The Implementation Result<T, TE>

The implementation Result<T, TE> contains 2 constructors (each child class recalls the base(X)):

/// Successful
public Result(T data)
{
    this.IsSuccess = true;
    this.Data = data;
    this.Message = default;
}
/// Failed
public Result(TE message)
{
    this.IsSuccess = false;
    this.Message = message;
    this.Data = default;
}

The full list of interfaces (with according implementations)

The Base

  • IResult<out T, out TE>

The list of the interfaces which are replacing the TE

  • IResult<out T>: TE defined as string
  • IResultWithException<out T>: TE defined as Exception
  • IResultWithErrorsArray<out T>: TE defined as array of string
  • IResultWithExceptionsArray<out T>: TE defined as array of Exception

The list of the interfaces which are replacing the T

  • IResultBool: IResult<bool>
  • IResultBoolWithException : IResultWithException<bool>
  • IResultBoolWithErrorsArray : IResultWithErrorsArray<bool>
  • IResultBoolWithExceptionsArray : IResultWithExceptionsArray<bool>
  • IResultList<T> : IResult<IList<T>>
  • IResultListWithException<T> : IResultWithException<IList<T>>
  • IResultListWithErrorsArray<T> : IResultWithErrorsArray<IList<T>>
  • IResultListWithExceptionsArray<T> : IResultWithExceptionsArray<IList<T>>

Please be free to implement any other interface base on provided ones which will be useful for you.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ResultsVH:

Package Downloads
IUnitOfWorkVH

Unit of work pattern with base Repos (IRepBase/RepBase - get-only; IRep/Rep - get/add/remove) for EFCore 10.0.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0 305 11/14/2025
1.0.2 347 6/13/2025
1.0.1 311 6/13/2025
1.0.0 314 6/13/2025