// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+using System.Runtime.InteropServices;
+
namespace System.Reflection.Emit {
+
+#if NET_2_0
+ [ComVisible (true)]
+#endif
[Serializable]
public struct Label {
internal int label;
label = val;
}
- [MonoTODO]
public override bool Equals (object obj) {
- /* FIXME */
- return false;
+ bool res = obj is Label;
+
+ if (res) {
+ Label l = (Label)obj;
+ res = (label == l.label);
+ }
+
+ return res;
+ }
+
+#if NET_2_0
+ public bool Equals (Label obj)
+ {
+ return (label == obj.label);
+ }
+
+ public static bool operator == (Label a, Label b) {
+ return a.Equals (b);
+ }
+
+ public static bool operator != (Label a, Label b) {
+ return !(a == b);
}
+#endif
public override int GetHashCode () {
return label.GetHashCode ();