Skip to content

IsNumeric Exception  #1661

Open
Open
@dagal10

Description

@dagal10

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions