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: 2.1.0.1 (2.1.0.1)
Syntax
C#
public void SetOriginalValue(
	JToken targetValue,
	JToken origValue,
	string suffix = "-OriginalValue"
)

Parameters

targetValue
Type: JToken
The target value that holds a converted value that can't be converted back without losing some information.
origValue
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