mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 17:35:33 +00:00
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:
parent
d33dd8a15f
commit
88d38246f5
|
@ -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.
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue