CTCClassSchedule.AutomatedFootnotesConfig.GetFootnoteInstances C# (CSharp) Method

GetFootnoteInstances() private static method

Returns a dictionary of all elements within a given collection of footnote messages. The key is the name of the footnote element, the value is the element itself.
private static GetFootnoteInstances ( AutomatedFootnoteCollection collection ) : AutomatedFootnoteElement>.Dictionary
collection AutomatedFootnoteCollection The collection to convert to a dictionary.
return AutomatedFootnoteElement>.Dictionary
        private static Dictionary<string, AutomatedFootnoteElement> GetFootnoteInstances(AutomatedFootnoteCollection collection)
        {
            Dictionary<string, AutomatedFootnoteElement> instances = new Dictionary<string, AutomatedFootnoteElement>();

            foreach (AutomatedFootnoteElement i in collection)
            {
                instances.Add(i.Name, i);
            }

            return instances;
        }