Mercurial > hg > ucis.core
comparison USBLib/Communication/LibUsb1/LibUsb1Registry.cs @ 37:2e3f57f326b3
Fixed some compiler warnings
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Sun, 21 Apr 2013 19:41:19 +0200 |
parents | dcfec2be27c9 |
children | 99ed461509fe |
comparison
equal
deleted
inserted
replaced
36:c4a5dbe62513 | 37:2e3f57f326b3 |
---|---|
120 public override bool Equals(object obj) { | 120 public override bool Equals(object obj) { |
121 LibUsb1Registry r = obj as LibUsb1Registry; | 121 LibUsb1Registry r = obj as LibUsb1Registry; |
122 if (r == null) return false; | 122 if (r == null) return false; |
123 return r.Device.DangerousGetHandle() == Device.DangerousGetHandle(); | 123 return r.Device.DangerousGetHandle() == Device.DangerousGetHandle(); |
124 } | 124 } |
125 | |
126 public override int GetHashCode() { | |
127 return Device.DangerousGetHandle().GetHashCode(); | |
128 } | |
125 } | 129 } |
126 } | 130 } |