Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
transform string to hex code
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Linq; namespace Rextester { public class Program { public static void Main(string[] args) { //transform string to hex code. ignore '0x' string test = "stringtohex"; Console.WriteLine(GetHex(test)); } public static string GetHex(string s) { return "0x" + string.Join("", s.Select(c => Convert.ToByte(c).ToString("X2"))); } } }
run
|
edit
|
history
|
help
0
наименьшее общее кратное двух чисел a и b
enum.TryParse
Bubble Sort
Importent Gen_Coverent Example-1
PrecisionTester
barcos
Program A
a6
look at this, soaches
Timer2