DbResourceReader.GetEnumerator

This is the worker method responsible for actually retrieving resources from the resource store. This method goes out queries the database by asking for a specific ResourceSet and Culture and it returns a Hashtable (as IEnumerable) to use as a ResourceSet.

The ResourceSet manages access to resources via IEnumerable access which is ultimately used to return resources to the front end.

Resources are read once and cached into an internal Items field. A ResourceReader instance is specific to a ResourceSet and Culture combination so there should never be a need to reload this data, except when explicitly clearing the reader/resourceset (in which case Items can be set to null via ClearResources()).

public sealed IDictionaryEnumerator GetEnumerator()

Return Value

An IDictionaryEnumerator of the resources for this reader


See also:

Class DbResourceReader

© West Wind Technologies, 2006 - 2019 • Updated: 01/24/18
Comment or report problem with topic