Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to know character is a digit or not in c#

//IsDigit method
using System;
class Test 
{
  
    public static public void Main(String[] args)
    {
  		bool answer;
 		// checking if 1 is a digit or not
        char ch = '1';
        answer = Char.IsDigit(ch);
        Console.WriteLine(answer);
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: qtablewidget add image 
Csharp :: c# isdigit mehod 
Csharp :: unity call function on update once per second 
Csharp :: c# convert string array to int array 
Csharp :: how to read particular line of file in c# 
Csharp :: how to make an ui to follow gameobject 
Csharp :: unity setparent 
Csharp :: get tag unity 
Csharp :: get all components of type unity 
Csharp :: get percentage c# 
Csharp :: transform.position.x unity 
Csharp :: asp.net 5 iis HTTP Error 500.19 - Internal Server Error 
Csharp :: checking if a list contains a value unity 
Csharp :: convert html to pdf c# 
Csharp :: datetime month name 
Csharp :: c# findindex 
Csharp :: how to get row index of selected row in gridview asp.net webforms 
Csharp :: c# delete files in directory and subdirectories 
Csharp :: c# numbers only 
Csharp :: c# html to pdf 
Csharp :: How to type custom backcolor on c# winform 
Csharp :: string to char array c# 
Csharp :: how to turn a string in a char list c# 
Csharp :: entity framework core db first 
Csharp :: how to set the value of a textbox textmode=date asp.net c# 
Csharp :: how to trim path in C# 
Csharp :: get domain name from email in asp.net c# 
Csharp :: reverse linked list 
Csharp :: npm add auth token 
Csharp :: longest substring without repeating characters 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =