Пример #1
0
 public bool Equals(JsonLong other)
 {
     if (other is null)
     {
         return(false);
     }
     return(Value == other.Value);
 }
Пример #2
0
 public bool Equals(JsonLong other)
 {
     if (other is null)
     {
         return(false);
     }
     if (_isRegex && Regex.Match(other.Value.ToString(), _regexPattern).Length > 0)
     {
         return(true);
     }
     return(Value == NUMBER || Value == ANY);
 }