This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace MonadTest | |
{ | |
public interface IResult<T, E> | |
{ | |
T Outcome { get; } | |
E Error { get; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace MonadTest | |
{ | |
public interface IResult<E> | |
{ | |
E Error { get; } | |
} | |
public abstract class Result<E> : IResult<E> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace MonadTest | |
{ | |
public interface IOptional<T> where T : class | |
{ | |
T Value { get; } | |
} | |
public abstract class Optional<T> : IOptional<T> |