Пример #1
0
        /// <summary>
        /// Stores multiple resources
        /// </summary>
        /// <param name="resources"> The namees of the resources </param>
        public void AddResources(IEnumerable <string> resources)
        {
            // Find resources
            var appResources = _resourceLocator.FindResources(resources);

            // Turn appResources into a List<>
            appResources.ToList()
            // For every found resource...
            .ForEach(resource =>
            {
                // Add it to the list
                _resources.Add(resource.ResourceName, resource);
            });
        }