Пример #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);
            }
            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);
 }
 // CLS-compliant.
 /// <summary>
 /// 
 /// </summary>
 /// <param name="left"></param>
 /// <param name="right"></param>
 /// <returns></returns>
 public static bool Equals(RawDevice left, RawDevice right)
 {
     return left == right;
 }