Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

C# int to hex

int num = 123;
//X can be capital and not capital it specifies if the hex characters should be upper or lowercase
//the number specifies the amount of hex characters
//2X will give you something like A5
string hex = num.ToString("X2");
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# swap variables 
Csharp :: get directory name of path c# 
Csharp :: c# choose first n elements from list 
Csharp :: wpf scrollviewer mouse wheel 
Csharp :: json get request c# 
Csharp :: check distance to gameobject 
Csharp :: bootstrap distane between col 
Csharp :: waitforseconds unity 
Csharp :: c# read text file separated by comma 
Csharp :: generate random string c# 
Csharp :: ubuntu: how to open the terminal from c# 
Csharp :: merge point 
Csharp :: get connectionstring from web config c# 
Csharp :: c# append textbox 
Csharp :: unity new Color() 
Csharp :: create char array c# 
Csharp :: c# create file if not exists 
Csharp :: print array in c# 
Csharp :: how to name GameObject in c# 
Csharp :: c# get the last item in a list 
Csharp :: how to make multiplayer game in unity 
Csharp :: c# linq select from object list 
Csharp :: httpclient soap request c# 
Csharp :: c# search string array 
Csharp :: c# array 
Csharp :: get layermask from gameobject layer unity 
Csharp :: Celsius to Fahrenheit c# 
Csharp :: c# datagridview cell click event 
Csharp :: https request c# 
Csharp :: c# move files from one directory to another 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =