Пример #1
0
 /// <summary>
 /// 转换为二进制字符串
 /// </summary>
 /// <param name="hex">十六进制字符串</param>
 /// <example>in: 2E; out: 101110</example>
 public static string ToBinary(string hex) => DecimalismConverter.ToBinary(ToDecimalism(hex));
Пример #2
0
 /// <summary>
 /// 转换为二进制字符串
 /// </summary>
 /// <param name="byte">byte</param>
 /// <example>in: (byte)128; out: 10000000</example>
 public static string ToBinary(byte @byte) => DecimalismConverter.ToBinary(@byte);