mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-16 11:34:47 +02: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>
|
2002-10-19 Rachel Hestilow <hestilow@ximian.com>
|
||||||
|
|
||||||
* gconf, sample/gconf: Added.
|
* gconf, sample/gconf: Added.
|
||||||
|
@ -62,7 +62,7 @@ namespace GLib {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
GC.SuppressFinalize (this);
|
GC.SuppressFinalize (this);
|
||||||
g_object_unref (_obj);
|
//g_object_unref (_obj);
|
||||||
_obj = IntPtr.Zero;
|
_obj = IntPtr.Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -216,6 +216,16 @@ namespace GLib {
|
|||||||
return (Handle == ((Object) o).Handle);
|
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>
|
/// <summary>
|
||||||
/// GetHashCode Method
|
/// GetHashCode Method
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user