Suoranta.EnterpriseLib.Web - Developer API

ReadJsonFilter..::..TryParseValue Method

Attemps to parse rawValue and stores the return in parsedValue.

Namespace:  Suoranta.EnterpriseLib.Web.MVC.Filters
Assembly:  Suoranta.EnterpriseLib.Web (in Suoranta.EnterpriseLib.Web.dll)

Syntax


public bool TryParseValue(
	PropertyInfo prop,
	string rawValue,
	Object fullOutput,
	out Object parsedValue
)

Parameters

prop
Type: PropertyInfo
The property being currently processed (not needed in common scenarios).
rawValue
Type: String
The raw value from JSON.
fullOutput
Type: Object
The full output (not needed in common scenarios).
parsedValue
Type: Object%
Output variable for the parsed value.

Return Value

True if parsing succeeded, false otherwise.

Remarks


The implementer of this method does not need to manipulate fullOutput to store parsedValue. Parameters prop and fullOutput are provided for advanced parsing needs.