Class ResourceConfigurationCollection
Represents an immutable collection of resources to be loaded into a resource manager.
public class ResourceConfigurationCollection : IEnumerable<IResourceConfiguration>, IEnumerable
- Inheritance
-
ResourceConfigurationCollection
- Implements
- Inherited Members
Constructors
ResourceConfigurationCollection(ResourceManager, IEnumerable<IResourceConfiguration>)
Initializes a new instance of the ResourceConfigurationCollection class using the specified resource manager and a set of resources to load.
public ResourceConfigurationCollection(ResourceManager resourceManager, IEnumerable<IResourceConfiguration> collection)
Parameters
resourceManager
ResourceManagerThe resource manager into which the resources will be loaded.
collection
IEnumerable<IResourceConfiguration>The set of resources to be loaded into the resource manager.
Properties
ResourceManager
Gets the resource manager object into which the resources will be loaded.
public ResourceManager ResourceManager { get; }
Property Value
Methods
Add(IResourceConfiguration)
Creates a new collection of resources to be loaded into the resource manager by appending a new resource to the end of this collection.
public ResourceConfigurationCollection Add(IResourceConfiguration resource)
Parameters
resource
IResourceConfigurationThe additional resource to be loaded into the resource manager.
Returns
- ResourceConfigurationCollection
A new ResourceConfigurationCollection object containing the combined set of resources.
AddRange(IEnumerable<IResourceConfiguration>)
Creates a new collection of resources to be loaded into the resource manager by appending a new set of resources to the end of this collection.
public ResourceConfigurationCollection AddRange(IEnumerable<IResourceConfiguration> collection)
Parameters
collection
IEnumerable<IResourceConfiguration>The additional set of resources to be loaded into the resource manager.
Returns
- ResourceConfigurationCollection
A new ResourceConfigurationCollection object containing the combined set of resources.
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<IResourceConfiguration> GetEnumerator()
Returns
- IEnumerator<IResourceConfiguration>
An enumerator that can be used to iterate through the collection.