HybridResourceManagerCloneValues Property

Gets or sets whether GetObject and GetMetaObject methods return always a new copy of the stored values.
Default value: .

Definition

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

Property Value

Boolean

Implements

IExpandoResourceManagerCloneValues

Remarks

To be compatible with System.Resources.ResourceManager this property is by default. If this HybridResourceManager contains no mutable values or it is known that modifying values is not an issue, then this property can be set to for better performance.

String values are not cloned.

The value of this property affects only the objects returned from .resx sources. Non-string values from compiled sources are always cloned.

See Also