コード例 #1
0
        public bool Remove(string key)
        {
            WeaveTable temp = temps.Find(x => x.Key == key);

            temps.Remove(temp);
            return(true);
        }
コード例 #2
0
 public bool Add(string key, object value)
 {
     try
     {
         WeaveTable t = new WeaveTable();
         t.Key   = key;
         t.Value = value;
         temps.Add(t);
         return(true);
     }
     catch { return(false); }
 }
コード例 #3
0
 /// <summary>
 /// 我新增的一个方法
 /// </summary>
 /// <param name="weaveTable"></param>
 /// <param name="_TcpToken"></param>
 public void SetGlobalQueueTable(WeaveTable weaveTable, WeaveTcpToken _TcpToken)
 {
     WeaveTcpTokenList.Add(_TcpToken);
     GlobalQueueTable = weaveTable;
 }
コード例 #4
0
 public void SetGlobalQueueTable(WeaveTable weaveTable, List <WeaveTcpToken> TcpTokenlist)
 {
     WeaveTcpTokenList = TcpTokenlist;
     GlobalQueueTable  = weaveTable;
 }