Click or drag to resize

JObjectHelperSetOriginalValue Method

Sets the original (source) value in a location corresponding to the targetValue location in the target structure. This allows for the original value to be preserved when reverting back to the original format for conversions that lose information.

Namespace:  MFiles.VAF.Configuration.JsonMapping
Assembly:  MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 21.8.10524.1
public void SetOriginalValue(
	JToken targetValue,
	JToken origValue,
	string suffix = "-OriginalValue"


Type: JToken
The target value that holds a converted value that can't be converted back without losing some information.
Type: JToken
The original value to also store in the target structure.
suffix (Optional)
Type: SystemString
The suffix to use when creating a property name to store the original value.
See Also