ExpressionParserToNumericString Method |
Note: This API is now obsolete.
Convert a supposedly numeric string into a validated numeric string. This method has two purposes:
- Convert likely non-numerics to valid numerics. In particular, null/empty string to zero, "false" to zero, "true" to one.
- 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
)
<ObsoleteAttribute("This class has been deprecated and is superceded by NetQuarry.ExpressionParser.ToNumericString.")>
Public Shared Function ToNumericString (
num As String
) As String
Parameters
- num
- Type: SystemString
The numeric string to process.
Return Value
Type:
StringThe converted numeric string.
See Also