public IEnumerable <IndexValue> VisitString(IJsonString value) { yield return(new IndexValue(value.Value)); }
public StringMatcher(IJsonString value) { Value = value; }
public override bool VisitString(IJsonString value) { return string.Equals(_value, value.Value, StringComparison.OrdinalIgnoreCase); }
/// <summary> /// Returns a value indicating equality with the specified /// <see cref="NetServ.Net.Json.IJsonString"/>. /// </summary> /// <param name="other">The <see cref="NetServ.Net.Json.IJsonString"/> to /// compare.</param> /// <returns></returns> public int CompareTo(IJsonString other) { return(other != null?this.Value.CompareTo(other.Value) : -1); }
public override bool VisitString(IJsonString value) { return Value.Value == value.Value; }
public Matcher VisitString(IJsonString value) { return(new StringMatcher(value)); }
/// <summary> /// Returns a indicating whether this instance is equal to the specified /// <see cref="NetServ.Net.Json.IJsonString"/>. /// </summary> /// <param name="other">The value to compare.</param> /// <returns>True if the specified instance is equal to this instance, otherwise; /// false.</returns> public bool Equals(IJsonString other) { return(other != null && Equals(other.Value)); }
public virtual bool VisitString(IJsonString value) { return(false); }
/// <summary> /// Returns a indicating whether this instance is equal to the specified /// <see cref="NetServ.Net.Json.IJsonString"/>. /// </summary> /// <param name="other">The value to compare.</param> /// <returns>True if the specified instance is equal to this instance, otherwise; /// false.</returns> public bool Equals(IJsonString other) { return other != null && Equals(other.Value); }
/// <summary> /// Returns a value indicating equality with the specified /// <see cref="NetServ.Net.Json.IJsonString"/>. /// </summary> /// <param name="other">The <see cref="NetServ.Net.Json.IJsonString"/> to /// compare.</param> /// <returns></returns> public int CompareTo(IJsonString other) { return other != null ? this.Value.CompareTo(other.Value) : -1; }
public override bool VisitString(IJsonString value) { return(Value.Value == value.Value); }