示例#1
0
 /// <summary>
 /// Checks whether the given byte is special or not.
 /// </summary>
 /// <param name="source"></param>
 /// <param name="byteToCheck">Byte to check.</param>
 /// <returns><c>true</c> if given byte is special, <c>false</c> otherwise.</returns>
 public static bool IsSpecialByte(this SpecialByte source, byte byteToCheck)
 {
     return(source.Get(byteToCheck) != 0);
 }
示例#2
0
 /// <summary>
 /// Checks whether the given byte is special or not.
 /// </summary>
 /// <param name="dumb"></param>
 /// <param name="byteToCheck">Byte to check.</param>
 /// <returns>true if given byte is special, false otherwise.</returns>
 public static bool IsSpecialByte(this SpecialByte dumb, byte byteToCheck)
 {
     return(dumb.Get(byteToCheck) != null);
 }