public TypeSelectionList(Object[] objects)
{
Dictionary<string, List<Object>> dictionary = new Dictionary<string, List<Object>>();
foreach (Object obj2 in objects)
{
string typeName = ObjectNames.GetTypeName(obj2);
if (!dictionary.ContainsKey(typeName))
{
dictionary[typeName] = new List<Object>();
}
dictionary[typeName].Add(obj2);
}
this.m_TypeSelections = new List<TypeSelection>();
foreach (KeyValuePair<string, List<Object>> pair in dictionary)
{
this.m_TypeSelections.Add(new TypeSelection(pair.Key, pair.Value.ToArray()));
}
this.m_TypeSelections.Sort();
}