Пример #1
0
 /// <summary>
 /// Sum the bound value
 /// </summary>
 /// <remarks>This is a legacy method for backwards compatibility</remarks>
 /// <param name="a">Option of int</param>
 /// <returns>The bound value or 0 if None</returns>
 public static Task <int> Sum(this OptionAsync <int> a) =>
 a.IfNone(0);