Skip to content

It represents APIs that help to write functional codes in c#!

Notifications You must be signed in to change notification settings

xsoheilalizadeh/xResult

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xResult (Prototype) 🚦

What is xResult?

It represents APIs that help to write functional codes in c#!

using static xResult.Result;

public class User
{
    private User(string userName)
    {
        UserName = userName;
    }

    public string UserName { get; }

    public static Result<User> New(string userName)
    {
        if (string.IsNullOrEmpty(userName))
        {
            return Fail("The UserName is required!");
        }
        return Ok(new User(userName));
    }
}

About

It represents APIs that help to write functional codes in c#!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages