ResXResourceReaderSafeMode Property

Gets or sets whether ResXDataNode objects are returned when reading the current XML resource file or stream.
Default value: .

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public bool SafeMode { get; set; }

Property Value

Boolean

Remarks

When SafeMode is , then objects returned by the GetEnumerator and GetMetadataEnumerator methods return ResXDataNode instances instead of deserialized objects. You can retrieve the deserialized objects on demand by calling the ResXDataNode.GetValue method on the ResXDataNode instance.
See also the examples at the Remarks section of the ResXResourceReader class.

Exceptions

ObjectDisposedExceptionThe Close or IDisposable.Dispose method has already been called on this ResXResourceReader instance.

See Also