Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# check if is float

public bool IsFloatOrInt(string value) {
  int intValue;
  float floatValue;
  return Int32.TryParse(value, out intValue) || float.TryParse(value, out floatValue);
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# get property using string 
Csharp :: c# set file invisible 
Csharp :: how to turn off sprite renderer in unity 
Csharp :: make mesh follow wheel collider unity 
Csharp :: add leading zeroes in c# 
Csharp :: C# inline question mark on object 
Csharp :: Arrange array element in right and left order starting from least element 
Csharp :: C# executing assembly path 
Csharp :: c# regex number only 
Csharp :: how to make a object disapear in windows form c# 
Csharp :: how to get desktop name in c# 
Csharp :: unity detect object with raycast 
Csharp :: how to know what object player touches unity 2D 
Csharp :: C# aspnet how to run a migration 
Csharp :: C# .net core convert int to enum 
Csharp :: c# initialize array 
Csharp :: coroutine not eaffected by time.timescale unity 
Csharp :: rotation facing mouse unity 
Csharp :: c# string to byte array 
Csharp :: How to get the world position of the edge of an object? 
Csharp :: Specified key was too long; max key length is 1000 bytes (SQL: alter table `permissions` add unique `permissions name guard_name_unique`(`name`, `guard_name`)) 
Csharp :: http error 502.5 asp.net core 2.2 
Csharp :: take screenshot in c# 
Csharp :: c# how to use inovke 
Csharp :: c# unity get lines 
Csharp :: c# list sort by property string 
Csharp :: c# for loop increment by 2 
Csharp :: how to save a c# dictionary 
Csharp :: print array in c# 
Csharp :: all month in array 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =