예제 #1
0
 public static PagedCheckboxBuilder <TResult> WithDefaultValue <TResult>(this PagedCheckboxBuilder <TResult> builder, TResult defaultValue) where TResult : IComparable
 {
     builder.Default(builder.Choices, new List <TResult>()
     {
         defaultValue
     });
     return(builder);
 }
예제 #2
0
 public static PagedCheckboxBuilder <TResult> WithDefaultValue <TResult>(this PagedCheckboxBuilder <TResult> builder, Func <TResult, bool> compareTo)
 {
     builder.Default(builder.Choices, compareTo);
     return(builder);
 }