예제 #1
0
 /// <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)));
 }
예제 #2
0
 /// <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));
예제 #3
0
 /// <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));
 }