[Gtk-sharp-list] List Store API suggestion
Mike Kestner
mkestner@ximian.com
Sun, 22 Feb 2004 20:07:42 -0600
On Sun, 2004-02-22 at 13:18, Samuel Kaufman wrote:
> if (iter == null)
> nativecall(TreeIter.Zero);
>
> Not sure if I'm stating the obvious or just very tired.
Heh, except that won't work, for the reason I mentioned. iter is a
value type. You can't compare it to null. Users can't pass null to a
TreeIter param. The solution I was referring to is:
if (iter == TreeIter.Zero)
nativecall(IntPtr.Zero);
--
Mike Kestner <mkestner@ximian.com>