Example #1
0
 ///<summary>Returns the value contained in the given potential value, if any, or else the given alternative potential value.</summary>
 public static May <T> Else <T>(this May <T> potentialValue, May <T> alternative)
 {
     return(potentialValue.Else(() => alternative));
 }
Example #2
0
 ///<summary>Returns the value contained in the given potential value, if any, or else the type's default value.</summary>
 public static T ElseDefault <T>(this May <T> potentialValue)
 {
     return(potentialValue.Else(default(T)));
 }