Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Arrange Hex string in a new one as a byte array declaration
//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.Globalization; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Text; namespace Rextester { public class Program { public static void Main(string[] args) { // Your hex string goes here var a = "A5217230303030303030303030303030303030303030303030303100004B464B464E494E4937320A01130A01130A01130A01130A01130A011308280828082814001400000001010500000001000000C8828E0A0113019001904C09304B1413010A013200AA00DC010E015E00DC0014000000003C03F7E7"; for(var c = 0; c < (a.Length - 1); c=c+2) { var b = byte.Parse(a[c].ToString() + a[c+1].ToString(), NumberStyles.HexNumber); Console.Write("0x" + Convert.ToInt32(b).ToString("X2") + ", "); } } } }
run
|
edit
|
history
|
help
0
OneDrive Direct Download Generator
Daimone
olution to problem #2 from projecteuler.net
fnaf
1
Free Tiktok Fans Generator
last ie
HTML Hex to RGB without using System.Drawing C#
The Fisher–Yates shuffle array extension method
simult Q3 with latex code + Quad factorization