* PagedDataSource.cs: If it's not a list or collection we don't
authorJackson Harper <jackson@novell.com>
Mon, 29 Aug 2005 18:26:43 +0000 (18:26 -0000)
committerJackson Harper <jackson@novell.com>
Mon, 29 Aug 2005 18:26:43 +0000 (18:26 -0000)
        use a bounded enumerator.

svn path=/trunk/mcs/; revision=49079

mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
mcs/class/System.Web/System.Web.UI.WebControls/PagedDataSource.cs

index 257cfd605003290ff37257582871b5be6302eac1..5b884ca049c59e33f0af9d8c0d1114cd6a242e46 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-29  Jackson Harper  <jackson@ximian.com>
+
+       * PagedDataSource.cs: If it's not a list or collection we don't
+       use a bounded enumerator.
+
 2005-08-29  Chris Toshok  <toshok@ximian.com>
 
        * LinkButton.cs: fix some 2.0 Page/ClientScript obsolete warnings.
index af6b6790ead35395fb7130cc10cdd28400d5c67f..3dafbc7522570623482a927c14c6ce07862d7a15 100644 (file)
@@ -223,8 +223,7 @@ namespace System.Web.UI.WebControls {
                                return GetListEnum (list, FirstIndexInPage,
                                                FirstIndexInPage + PageSize);
 
-                       return GetEnumeratorEnum (source.GetEnumerator (),
-                                       FirstIndexInPage, FirstIndexInPage + PageSize);
+                       return source.GetEnumerator ();
                }
 
                public PropertyDescriptorCollection GetItemProperties (