Exemplo n.º 1
0
        private static ItemDictionary <ProjectItemInstance> ToItemDictionary(Dictionary <string, string[]> itemTypes)
        {
            var itemDictionary = new ItemDictionary <ProjectItemInstance>();

            var dummyProject = ProjectHelpers.CreateEmptyProjectInstance();

            foreach (var itemType in itemTypes)
            {
                foreach (var item in itemType.Value)
                {
                    itemDictionary.Add(new ProjectItemInstance(dummyProject, itemType.Key, item, dummyProject.FullPath));
                }
            }

            return(itemDictionary);
        }