ResXResourceSetSafeMode Property

Gets or sets whether the ResXResourceSet works in safe mode. In safe mode the retrieved objects are not deserialized automatically.
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

Implements

IExpandoResourceSetSafeMode

Remarks

When SafeMode is , then GetObject and GetMetaObject methods return ResXDataNode instances instead of deserialized objects. You can retrieve the deserialized objects by calling the ResXDataNode.GetValue or ResXDataNode.GetValueSafe methods.

When SafeMode is , then GetString and GetMetaString methods will return a String also for non-string objects. For non-string elements the raw XML string value will be returned.

If SafeMode is , then AutoFreeXmlData property is ignored. The raw XML data of a node can be freed when calling the ResXDataNode.GetValue method.

For examples see the documentation of the ResXResourceSet class.

See Also