示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            RawDevice rawDevice = obj as RawDevice;

            if (ReferenceEquals(rawDevice, null))
            {
                return(false);
            }
            else
            {
                return(hDevice == rawDevice.hDevice);
            }
        }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="left"></param>
 /// <param name="right"></param>
 /// <returns></returns>
 public static bool Equals(RawDevice left, RawDevice right)         // CLS-compliant.
 {
     return(left == right);
 }