Open
Description
In VB.Net we are using IsNumeric to prevent an exception but when we pass "&h-#" I get System.ArgumentException with message "String cannot contain a minus sign if the base is not 10."
&h-# is a randomly generated value, but we didn't expect IsNumeric to throw an exception, just return False
Ex:
Dim isNumber As Boolean = IsNumeric("&h-#")
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 1fc35bdd-823b-c1b8-d867-dcfeeb3de382
- Version Independent ID: aa00be7d-5ae9-2e18-8281-7762fbb26009
- Content: Information.IsNumeric(Object) Method (Microsoft.VisualBasic)
- Content Source: xml/Microsoft.VisualBasic/Information.xml
- Product: dotnet-api
- GitHub Login: @KathleenDollard
- Microsoft Alias: kdollard