From 654b783fc0cc0368d557864884d4871a5b029734 Mon Sep 17 00:00:00 2001 From: Jb Evain Date: Tue, 1 Dec 2009 18:18:30 +0000 Subject: [PATCH] 2009-12-01 Jb Evain * Stack.cs (Enumerator.Dispose): tag the enumerator as finished upon Dispose. svn path=/trunk/mcs/; revision=147248 --- mcs/class/System/System.Collections.Generic/ChangeLog | 5 +++++ mcs/class/System/System.Collections.Generic/Stack.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mcs/class/System/System.Collections.Generic/ChangeLog b/mcs/class/System/System.Collections.Generic/ChangeLog index a95c8141e64..2a999b11312 100644 --- a/mcs/class/System/System.Collections.Generic/ChangeLog +++ b/mcs/class/System/System.Collections.Generic/ChangeLog @@ -1,3 +1,8 @@ +2009-12-01 Jb Evain + + * Stack.cs (Enumerator.Dispose): tag the enumerator as finished + upon Dispose. + 2009-11-26 Marek Safar * LinkedList.cs: Allocate less. diff --git a/mcs/class/System/System.Collections.Generic/Stack.cs b/mcs/class/System/System.Collections.Generic/Stack.cs index 7c231edc294..84a613bf336 100644 --- a/mcs/class/System/System.Collections.Generic/Stack.cs +++ b/mcs/class/System/System.Collections.Generic/Stack.cs @@ -213,7 +213,7 @@ namespace System.Collections.Generic // broken. public void Dispose () { - idx = NOT_STARTED; + idx = FINISHED; } public bool MoveNext () -- 2.25.1