public bool Remove(string key) { WeaveTable temp = temps.Find(x => x.Key == key); temps.Remove(temp); return(true); }
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); } }
/// <summary> /// 我新增的一个方法 /// </summary> /// <param name="weaveTable"></param> /// <param name="_TcpToken"></param> public void SetGlobalQueueTable(WeaveTable weaveTable, WeaveTcpToken _TcpToken) { WeaveTcpTokenList.Add(_TcpToken); GlobalQueueTable = weaveTable; }
public void SetGlobalQueueTable(WeaveTable weaveTable, List <WeaveTcpToken> TcpTokenlist) { WeaveTcpTokenList = TcpTokenlist; GlobalQueueTable = weaveTable; }