示例#1
0
文件: QueryLink.cs 项目: Spaxys/Kean
        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);
        }
示例#2
0
文件: QueryLink.cs 项目: Spaxys/Kean
 public QueryLink(KeyValue <string, string> head, QueryLink tail) :
     this(head)
 {
     this.Tail = tail;
 }
示例#3
0
文件: QueryLink.cs 项目: Spaxys/Kean
 public QueryLink(string key, string value, QueryLink tail) :
     this(KeyValue.Create(key, value), tail)
 {
 }
示例#4
0
文件: QueryLink.cs 项目: Spaxys/Kean
 public bool Equals(QueryLink other)
 {
     return(other.NotNull() && this.Head == other.Head && this.Tail == other.Tail);
 }