Beispiel #1
0
        public QueryLink Add(string key, string value)
        {
            QueryLink result;
            KeyValue <string, string> item = KeyValue.Create(key, value);

            if (this.head.HasValue)
            {
                result = this.Add(item);
            }
            else
            {
                result = new QueryLink(item);
            }
            return(result);
        }
Beispiel #2
0
 public QueryLink(KeyValue <string, string> head, QueryLink tail) :
     this(head)
 {
     this.Tail = tail;
 }
Beispiel #3
0
 public QueryLink(string key, string value, QueryLink tail) :
     this(KeyValue.Create(key, value), tail)
 {
 }
Beispiel #4
0
 public bool Equals(QueryLink other)
 {
     return(other.NotNull() && this.Head == other.Head && this.Tail == other.Tail);
 }