JObjectHelperTryFindOriginalValue Method

Retrieves an original value that may have been set in a source structure for converted values that might lose some information. Typically the original value would have been saved with the SetOriginalValue(JToken, JToken, String) method.

Definition

Namespace: MFiles.VAF.Configuration.JsonMapping
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public bool TryFindOriginalValue(
	JToken sourceValue,
	out JToken origValue,
	string suffix = "-OriginalValue"
)

Parameters

sourceValue  JToken
The source value that may have a corresponding original value.
origValue  JToken
Receives the original value if found.
suffix  String  (Optional)
The suffix that was used to store the original value.

Return Value

Boolean
True if the original value was found, false otherwise.

See Also