[Mono-dev] DataTable.CreateDataReader patch

Petri Latvala adrinael at adrinael.net
Thu Jun 15 02:49:52 EDT 2006


Here's a naive implementation of DataTable.CreateDataReader. This is
too simple for me to believe it is correct. Comments, please.




Index: class/System.Data/System.Data/DataTable.cs
===================================================================
--- class/System.Data/System.Data/DataTable.cs	(revision 61743)
+++ class/System.Data/System.Data/DataTable.cs	(working copy)
@@ -1024,9 +1024,9 @@
 
 #if NET_2_0
 		[MonoTODO]
-		public DataTableReader GetDataReader ()
+		public DataTableReader CreateDataReader ()
 		{
-			throw new NotImplementedException ();
+			return new DataTableReader(this);
 		}
 #endif
 







-- 
Petri Latvala
Adrinael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060615/3243a232/attachment.bin 


More information about the Mono-devel-list mailing list