Example #1
0
 protected object ToValue(Type propertyType, JsonBool jsonValue)
 {
     if (propertyType == typeof(string))
     {
         return(jsonValue.Value == true ? "true" : "false");
     }
     else
     {
         return(jsonValue.Value);
     }
 }
 public string ToBool(JsonBool jsonValue)
 {
     return(this.jsonService.GetBool(jsonValue.Value));
 }