[Gtk-sharp-list] ToString Patch for GLib.Type

Martin Willemoes Hansen mwh@sysrq.dk
23 Jun 2003 16:01:27 +0200


--=-fkno8Vk5/9FHdBA1pgpJ
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

A little patch for adding ToString capability to GLib.Type .. nice when
you want to know what a GLib.Type value has.

Okay to commit?
-- 
Martin Willemoes Hansen

--------------------------------------------------------
E-Mail	mwh@sysrq.dk		Website	mwh.sysrq.dk
IRC     MWH, freenode.net
--------------------------------------------------------              

--=-fkno8Vk5/9FHdBA1pgpJ
Content-Disposition: attachment; filename=Type.cs.diff
Content-Type: text/plain; name=Type.cs.diff; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

--- Type.cs	2003-06-23 15:59:34.000000000 +0200
+++ Type.cs.new	2003-06-23 15:50:25.000000000 +0200
@@ -46,5 +46,10 @@
 				return val;
 			}
 		}
+
+		public override string ToString()
+		{
+			return val.ToString();
+		}
 	}
 }

--=-fkno8Vk5/9FHdBA1pgpJ--