Click or drag to resize

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.

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 bool TryFindOriginalValue(
	JToken sourceValue,
	out JToken origValue,
	string suffix = "-OriginalValue"
)

Parameters

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

Return Value

Type: Boolean
True if the original value was found, false otherwise.
See Also