ResXResourceSetGetEnumerator Method

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

Definition

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

Return Value

IDictionaryEnumerator
An IDictionaryEnumerator for the resources of this ResXResourceSet.

Implements

IExpandoResourceSetGetEnumerator

Remarks

The returned enumerator iterates through the resources of the ResXResourceSet. 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.

See Also