PAS.ResultPattern 1.0.0

dotnet add package PAS.ResultPattern --version 1.0.0
                    
NuGet\Install-Package PAS.ResultPattern -Version 1.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="PAS.ResultPattern" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PAS.ResultPattern" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="PAS.ResultPattern" />
                    
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 PAS.ResultPattern --version 1.0.0
                    
#r "nuget: PAS.ResultPattern, 1.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 PAS.ResultPattern@1.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=PAS.ResultPattern&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=PAS.ResultPattern&version=1.0.0
                    
Install as a Cake Tool

Result

Repositorio con la implementaci�n del proyecto PS.Result targeting .NET 10.

Descripci�n

Este proyecto proporciona tipos y utilidades para representar operaciones que pueden terminar en �xito o fallo usando tipos Result y Result<T> (patr�n de resultado). Es una librer�a enfocada en c�digo claro y manejo expl�cito de errores sin excepciones para control de flujo.

Requisitos

  • .NET 10 SDK

Construcci�n

Desde la ra�z del repositorio:

dotnet build

O directamente el proyecto:

dotnet build ./PS.Result/PS.Result.csproj

Para ejecutar pruebas (si existen):

dotnet test

Uso b�sico

Ejemplo simple de patr�n Result (ejemplo ilustrativo):

// Ejemplo ilustrativo
Result<int> Dividir(int a, int b)
{
    if (b == 0) return Result.Failure<int>("Divisi�n por cero");
    return Result.Success(a / b);
}

var resultado = Dividir(10, 2);
if (resultado.IsSuccess)
{
    Console.WriteLine($"Resultado: {resultado.Value}");
}
else
{
    Console.WriteLine($"Error: {resultado.Error}");
}

Ajusta los nombres de tipos y m�todos seg�n la API de esta librer�a si difieren.

Contribuci�n

  1. Haz un fork del repositorio.
  2. Crea una rama descriptiva: feature/mi-cambio.
  3. A�ade tests para cambios relevantes.
  4. Abre un pull request explicando la motivaci�n.

Licencia

Revisa el archivo LICENSE del repositorio para informaci�n sobre la licencia.

dotnet add package PAS.ResultPattern

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 204 12/22/2025