Beispiel #1
0
        private void AddTld(string tld, TldType type)
        {
            var len = tld.Length;

            if (len > this._longestTldLength)
            {
                this._longestTldLength = len;
            }
            else if (len < this._shortestTldLength)
            {
                this._shortestTldLength = len;
            }

            this._tldDictionary.Add(StringGetHashCode(tld), new TldInfo(type, len));
            // ハッシュが被ったら知らん
        }
Beispiel #2
0
 public TldInfo(TldType type, int length)
 {
     this.Type   = type;
     this.Length = length;
 }