System.UInt16.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            return ((ushort)obj) == _value;
        }

Same methods

UInt16::Equals ( ushort obj ) : bool

Usage Example

Example #1
0
        // - 9번
        static void escape_byte(uint8_t b)
        {
            crc = crc_byte(crc, b);

            if (b.Equals(DEF_RF_MSG.SYNC_BYTE) || b.Equals(DEF_RF_MSG.ESCAPE_BYTE))
            {
                escaped[escapeptr++] = System.Convert.ToByte(DEF_RF_MSG.ESCAPE_BYTE);
                escaped[escapeptr++] = System.Convert.ToByte(b ^ 0x20);
            }
            else
            {
                escaped[escapeptr++] = System.Convert.ToByte(b);
            }
        }
All Usage Examples Of System.UInt16::Equals