public override U Apply <U>(IOptionMatcher <T, U> matcher) { return(matcher.None()); }
/// <summary> /// Applies <paramref name="matcher"/> to the <see cref="Option{T}"/> to calculate a value. /// </summary> /// <typeparam name="U">The type of the result</typeparam> /// <param name="matcher">The matcher to apply</param> /// <returns>The result of the calculation</returns> public abstract U Apply <U>(IOptionMatcher <T, U> matcher);
public override U Apply <U>(IOptionMatcher <T, U> matcher) { return(matcher.Some(_value)); }