OleViewDotNet.COMRegistry.AddEntryToDictionary C# (CSharp) Method

AddEntryToDictionary() private static method

private static AddEntryToDictionary ( Dictionary dict, COMCLSIDEntry entry ) : void
dict Dictionary
entry COMCLSIDEntry
return void
        private static void AddEntryToDictionary(Dictionary<string, List<COMCLSIDEntry>> dict, COMCLSIDEntry entry)
        {
            List<COMCLSIDEntry> list = null;
            string strServer = entry.Server.ToLower();
            if (dict.ContainsKey(strServer))
            {
                list = dict[strServer];
            }
            else
            {
                list = new List<COMCLSIDEntry>();
                dict[strServer] = list;
            }
            list.Add(entry);
        }