[Gtk-sharp-list] Missing override of Equals and GetHashCode for structs

Martin Willemoes Hansen mwh@sysrq.dk
Wed, 20 Aug 2003 22:56:51 +0200


I noticed that the generator do not generate code for Equals and
GetHashCode but it does generate code for == and != .. 

I was wondering if something like the following code would be desirable 
to have the generator generate:

public override bool Equals (object o)
	Foobar temp = (Foobar) o;
	return  (this == temp);

public override int GetHashCode()
	return base.GetHashCode();

Im writing this almost sleeping, hope its not too bad ;)

Martin Willemoes Hansen

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