IExpandoResourceSetGetEnumerator Method

Returns an IDictionaryEnumerator that can iterate through the resources of the IExpandoResourceSet.

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
IDictionaryEnumerator GetEnumerator()

Return Value

IDictionaryEnumerator
An IDictionaryEnumerator for the resources of this IExpandoResourceSet.

Remarks

The returned enumerator iterates through the resources of the IExpandoResourceSet. To obtain a specific resource by name, use the GetObject or GetString methods. To obtain an enumerator for the metadata entries instead, use the GetMetadataEnumerator method instead.

If the SafeMode property is , the IDictionaryEnumerator.Value property of the returned enumerator is a ResXDataNode instance rather than the resource value. This makes possible to check the raw .resx content before deserialization if the .resx file is from an untrusted source. See also the examples at ResXDataNode and ResXResourceSet classes.

The returned enumerators in this assembly support the IEnumerator.Reset method.

See Also