using System.Collections.Generic;
using System.Text.RegularExpressions;
private static Regex regex = new("^[A-Fa-f0-9]+$", RegexOptions.Compiled);
private static Regex regex2 = new("^(0|[1-9][0-9]*)$", RegexOptions.Compiled);
public static void Main()
var xtest= "375251234567";
Console.WriteLine("Phone Valid = " + Regex.IsMatch(xtest, @"(\+)?(375)([2][59]|44)([0-9]+){7,7}"));
var hex = BitConverter.ToString(new byte[]{0x00, 0x01}).Replace("-", "").ToLowerInvariant();
var hexex = "47304402206486e07a38217a476069924af4a5aa72346d15ab8f6de1b0dad331f0881a348f02203e5a26052408179baa2a27fb835";
var match = regex.IsMatch(hexex);
var xt = new byte[] { 1, 128 };
Console.WriteLine("MD: " + xt[cx++]);
Console.Write((char)xt[0]);
Console.WriteLine((char)xt[1]);
Console.WriteLine(System.Text.Encoding.ASCII.GetString(xt));
var btest1 = new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
var btest2 = new byte[] { 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
Console.WriteLine("T1" + btest1.SequenceEqual(btest2));
var x = BitConverter.GetBytes(tx);
x = x.Reverse().ToArray();
Console.WriteLine(BitConverter.ToString(x).Replace("-", "").ToLowerInvariant());
Console.WriteLine("aaaa".Length % 2 == 0);
Console.WriteLine(hexex.Length);
Console.WriteLine(match);
Console.WriteLine(regex2.IsMatch("123123asdf"));
ulong t1 = 11226028783092348819;
t2?.ForEach(a => Console.WriteLine(a));
Console.WriteLine(GetApiCache<Program>() == null);
Console.WriteLine("done!");
var test = new byte[]{0xe2, 0x21, 0x0d, 0x00};
var t = BitConverter.ToUInt32(test, 0);
var test2 = new byte[]{0xca, 0x01};
var t3 = BitConverter.ToUInt16(test2, 0);
public static T? GetApiCache<T>()