ResXResourceSetGetMetadataEnumerator Method

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

Definition

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

Return Value

IDictionaryEnumerator
An IDictionaryEnumerator for the metadata of this ResXResourceSet.

Implements

IExpandoResourceSetGetMetadataEnumerator

Remarks

The returned enumerator iterates through the metadata entries of the ResXResourceSet. To obtain a specific metadata by name, use the GetMetaObject or GetMetaString methods. To obtain an enumerator for the resources use the GetEnumerator 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