2002-10-19 Miguel de Icaza <miguel@ximian.com>

* glib/Object.cs: Added operator != and operator == overloads.

svn path=/trunk/gtk-sharp/; revision=8400
This commit is contained in:
Miguel de Icaza 2002-10-19 20:03:51 +00:00
parent d33dd8a15f
commit 88d38246f5
2 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2002-10-19 Miguel de Icaza <miguel@ximian.com>
* glib/Object.cs: Added operator != and operator == overloads.
2002-10-19 Rachel Hestilow <hestilow@ximian.com>
* gconf, sample/gconf: Added.

View file

@ -62,7 +62,7 @@ namespace GLib {
return;
GC.SuppressFinalize (this);
g_object_unref (_obj);
//g_object_unref (_obj);
_obj = IntPtr.Zero;
}
@ -216,6 +216,16 @@ namespace GLib {
return (Handle == ((Object) o).Handle);
}
public static bool operator == (Object a, Object b)
{
return a.Equals (b);
}
public static bool operator != (Object a, Object b)
{
return !a.Equals (b);
}
/// <summary>
/// GetHashCode Method
/// </summary>