Пример #1
0
 public IEnumerable <IndexValue> VisitString(IJsonString value)
 {
     yield return(new IndexValue(value.Value));
 }
Пример #2
0
 public StringMatcher(IJsonString value)
 {
     Value = value;
 }
Пример #3
0
 public override bool VisitString(IJsonString value)
 {
     return string.Equals(_value, value.Value, StringComparison.OrdinalIgnoreCase);
 }
Пример #4
0
 /// <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);
 }
Пример #5
0
 public override bool VisitString(IJsonString value)
 {
     return Value.Value == value.Value;
 }
Пример #6
0
 public Matcher VisitString(IJsonString value)
 {
     return(new StringMatcher(value));
 }
Пример #7
0
 /// <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));
 }
Пример #8
0
 public virtual bool VisitString(IJsonString value)
 {
     return(false);
 }
Пример #9
0
 /// <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);
 }
Пример #10
0
 /// <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;
 }
Пример #11
0
 public StringMatcher(IJsonString value)
 {
     Value = value;
 }
Пример #12
0
 public override bool VisitString(IJsonString value)
 {
     return(Value.Value == value.Value);
 }