Click or drag to resize

ExpressionParserToNumericString Method

Note: This API is now obsolete.

Convert a supposedly numeric string into a validated numeric string. This method has two purposes:
  1. Convert likely non-numerics to valid numerics. In particular, null/empty string to zero, "false" to zero, "true" to one.
  2. Protect against possible SQL injection attack by converting supposedly numeric values that don't parse to zero.
In the case of an unexpected, non-parsable value, a simple SQL injection attack detection is performed and a devlog and request log entry generated if a SQL injection attempt looks likely. This class is deprecated. Use NetQuarry.ExpressionParser.ToNumericString.

Namespace:  NetQuarry.Data
Assembly:  EAP.Mapper (in EAP.Mapper.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
[ObsoleteAttribute("This class has been deprecated and is superceded by NetQuarry.ExpressionParser.ToNumericString.")]
public static string ToNumericString(
	string num
)

Parameters

num
Type: SystemString
The numeric string to process.

Return Value

Type: String
The converted numeric string.
See Also