C# Validate String Is Numeric
C# Check String for Numbers Only
This blog post demonstrates how to test if string is number (true/false) in C#. Find the code snippet below :-
c# check string for numbers only |
C#
int n;
bool isNumeric = int.TryParse("02136", out n);
VB.Net
Dim n As Integer
Dim isNumeric As Boolean = Integer.TryParse("02136", n)
C# Validate String Is Numeric
Reviewed by Ravi Kumar
on
8:49 PM
Rating:
No comments: