remove some c.wls

svn path=/trunk/gtk-sharp/; revision=42222
This commit is contained in:
Mike Kestner 2005-03-24 16:22:49 +00:00
parent d9d19a3450
commit 17dc787956

View File

@ -56,27 +56,23 @@ namespace GLib {
static IntPtr Copy (IntPtr ptr)
{
Console.WriteLine ("Copying ManagedGValue: " + ptr);
GCHandle gch = (GCHandle) ptr;
return (IntPtr) GCHandle.Alloc (gch.Target);
}
static void Free (IntPtr ptr)
{
Console.WriteLine ("Freeing ManagedGValue: " + ptr);
GCHandle gch = (GCHandle) ptr;
gch.Free ();
}
public static IntPtr WrapObject (object obj)
{
Console.WriteLine ("Wrapping Object in ManagedGValue: " + obj);
return (IntPtr) GCHandle.Alloc (obj);
}
public static object ObjectForWrapper (IntPtr ptr)
{
Console.WriteLine ("Getting object of ManagedGValue: " + ptr);
return ((GCHandle)ptr).Target;
}
}