public void AddValue(string value) { if (null == m_Values) { m_Values = new COL.List <string>(); } m_Values.Add(value); }
public bool IsClientHost(string host) { if (null == host || 0 == host.Length) { return(false); } NET.IPHostEntry ipHe = NET.Dns.GetHostEntry(string.Empty); COL.List <string> localHosts = new COL.List <string>(16); foreach (NET.IPAddress ip in ipHe.AddressList) { localHosts.Add(ip.ToString()); } localHosts.AddRange(ipHe.Aliases); localHosts.Add(ipHe.HostName); localHosts.Add(m_ClientIp.ToString()); return(IsHostInList(host, localHosts)); }
public Parameter(string name) { m_Name = name; m_Count = 0; m_Values = null; }