Ejemplo n.º 1
0
 static void ValidateValueType(string property, JToken value)
 {
     if (!JsonEx.IsValidToken(value))
     {
         throw new InvalidOperationException($"Property {property} has a value of unsupported type. Valid types are integer, float, string, bool, null and nested object");
     }
 }