Exemplo n.º 1
0
 public static void AndAssignProperty(this DotvvmBindableObject obj, DotvvmProperty property, object value)
 {
     if (property.PropertyType != typeof(bool))
     {
         throw new NotSupportedException($"Can only AND boolean properties, {property} is of type {property.PropertyType}");
     }
     if (!obj.IsPropertySet(property))
     {
         obj.SetValue(property, value);
     }
     else
     {
         if (value is bool b && !b)
         {
             obj.SetValue(property, false);
         }
 public bool ContainsKey(string key)
 {
     return(control.IsPropertySet(group.GetDotvvmProperty(key)));
 }