mail-archives/gtk-sharp-list/2007-February/007767.html

82 строки
3.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] compare TreeIters
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20compare%20TreeIters&In-Reply-To=20070202181230.GN393%40butchest.cubesearch.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="007766.html">
<LINK REL="Next" HREF="007768.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] compare TreeIters</H1>
<B>Thiago M. Sayao</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20compare%20TreeIters&In-Reply-To=20070202181230.GN393%40butchest.cubesearch.com"
TITLE="[Gtk-sharp-list] compare TreeIters">thiago.sayao at gmail.com
</A><BR>
<I>Fri Feb 2 16:01:02 EST 2007</I>
<P><UL>
<LI>Previous message: <A HREF="007766.html">[Gtk-sharp-list] compare TreeIters
</A></li>
<LI>Next message: <A HREF="007768.html">[Gtk-sharp-list] compare TreeIters
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7767">[ date ]</a>
<a href="thread.html#7767">[ thread ]</a>
<a href="subject.html#7767">[ subject ]</a>
<a href="author.html#7767">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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.
[ ]'sss
On Fri, 2007-02-02 at 10:12 -0800, Peter Johanson wrote:
&gt;<i> On Fri, Feb 02, 2007 at 03:02:42PM +0200, Radu wrote:
</I>&gt;<i> &gt; What's the right way to compare TreeIters? Why iter1 == iter2 doesn't work?
</I>&gt;<i>
</I>&gt;<i> use if (iter1.Equals (iter2)) { /* foo */ }
</I>&gt;<i>
</I>&gt;<i> -pete
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Gtk-sharp-list maillist - <A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">Gtk-sharp-list at lists.ximian.com</A>
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</A>
</I>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070202/8fb8d938/attachment.html">http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070202/8fb8d938/attachment.html</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="007766.html">[Gtk-sharp-list] compare TreeIters
</A></li>
<LI>Next message: <A HREF="007768.html">[Gtk-sharp-list] compare TreeIters
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7767">[ date ]</a>
<a href="thread.html#7767">[ thread ]</a>
<a href="subject.html#7767">[ subject ]</a>
<a href="author.html#7767">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
mailing list</a><br>
</body></html>