コード例 #1
0
 public override U Apply <U>(IOptionMatcher <T, U> matcher)
 {
     return(matcher.None());
 }
コード例 #2
0
 /// <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);
コード例 #3
0
 public override U Apply <U>(IOptionMatcher <T, U> matcher)
 {
     return(matcher.Some(_value));
 }