IExpandoResourceSetCloneValues Property

Gets or sets whether GetObject/GetMetaObject and GetEnumerator/GetMetadataEnumerator 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#
bool CloneValues { get; set; }

Property Value

Boolean

Remarks

To be compatible with System.Resources.ResXResourceSet this property is by default. However, it can be a problem for mutable types if the returned value is changed by the consumer.

To be compatible with ResourceSet set this property to .

String values are not cloned.

The value of this property affects only the objects returned from .resx sources. Values from compiled sources are always cloned.

See Also