[Gtk-sharp-list] compare TreeIters

KLessou klessou at gmail.com
Thu Feb 15 15:49:38 EST 2007


I have got this problem to work with an Hastable that contains TreeIter
entries as keys.

How to make this Hastable ? With
*Hashtable<http://www.go-mono.com/docs/monodoc.ashx?link=C%3aSystem.Collections.Hashtable%28System.Collections.IEqualityComparer%29>
*(IEqualityComparer<http://www.go-mono.com/docs/monodoc.ashx?link=T%3aSystem.Collections.IEqualityComparer>)
?


Klessou

On 2/2/07, Peter Johanson <latexer at gentoo.org> wrote:
>
> On Fri, Feb 02, 2007 at 07:01:02PM -0200, Thiago M. Sayao wrote:
> >    That doesn't work either afaik
> >    iter1.Stamp == iter2.Stamp will do..
> >    the .Equals is inherited from the object type, which probably
> compares
> >    memory address, or not? i'm not sure about this, but i had problems
> >    doing iter1.Equals (iter2). It was the same iter, but on two
> different
> >    variables and it returned false.
>
> TreeIter overrides Equals, and should be sane (I've used it plenty of
> times). Odd it's not working for you.
>
> -pete
>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>



-- 
~~~~~
| klessou |
~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070215/f34b7178/attachment.html 


More information about the Gtk-sharp-list mailing list