System.Net.SpnDictionary.InternalGet C# (CSharp) Method

InternalGet() private method

private InternalGet ( string canonicalKey ) : string
canonicalKey string
return string
        internal string InternalGet(string canonicalKey)
        {
            int lastLength = 0;
            string key = null;

            foreach (object o in m_SyncTable.Keys){
                string s = (string) o;
                if(s != null && s.Length > lastLength){
                    if(String.Compare(s,0,canonicalKey,0,s.Length,StringComparison.OrdinalIgnoreCase) == 0){
                         lastLength = s.Length;
                         key = s;
                    }
                }
            }  
            return (key != null) ? (string)m_SyncTable[key]: null;
        }