コード例 #1
0
 public static PropertyConfiguration <T> Required <T>(this PropertyConfiguration <T> propertyConfig)
     where T : new()
 {
     propertyConfig._bag.Required = true;
     return(propertyConfig);
 }
コード例 #2
0
 public static PropertyConfiguration <T> WithOrder <T>(this PropertyConfiguration <T> propertyConfig, int order)
     where T :  new()
 {
     propertyConfig._bag.WithOrder = order;
     return(propertyConfig);
 }
コード例 #3
0
 public static PropertyConfiguration <T> VisibleWhen <T>(this PropertyConfiguration <T> propertyConfig, Func <T, bool> func)
     where T :  new()
 {
     propertyConfig._bag.VisibleWhen = func;
     return(propertyConfig);
 }
コード例 #4
0
 public static PropertyConfiguration <T> DisplayAs <T>(this PropertyConfiguration <T> propertyConfig, string caption)
     where T : new()
 {
     propertyConfig._bag.DisplayAs = caption;
     return(propertyConfig);
 }