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.

Definition

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

Parameters

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

See Also