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)); // ハッシュが被ったら知らん }
public TldInfo(TldType type, int length) { this.Type = type; this.Length = length; }