/// <summary> /// Convert from hexadecimal to binary /// </summary> /// <example>in: 2E; out: 101110</example> /// <param name="hex"></param> /// <returns></returns> public static string ToBinary(string hex) { return(DecimalismConversion.ToBinary(ToDecimalism(hex))); }
/// <summary> /// Convert from hexadecimal to binary /// </summary> /// <example>in: 2E; out: 101110</example> /// <param name="hex"></param> /// <returns></returns> public static string ToBinary(string hex) => DecimalismConversion.ToBinary(ToDecimalism(hex));
/// <summary> /// Convert from <see cref="byte"/> to binary /// </summary> /// <example>in: (byte)128; out: 10000000</example> /// <param name="byte"></param> /// <returns></returns> public static string ToBinary(byte @byte) { return(DecimalismConversion.ToBinary(@byte)); }