Bug 668 - DataTable.Clone looses the ExtendedProperties of the DataColumns
Summary: DataTable.Clone looses the ExtendedProperties of the DataColumns
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 4.x
Hardware: Macintosh Mac OS
: High critical
Target Milestone: Untriaged
Assignee: Rolf Bjarne Kvinge [MSFT]
Depends on:
Reported: 2011-09-07 14:00 UTC by Dominique NORMAND
Modified: 2012-01-05 14:17 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Dominique NORMAND 2011-09-07 14:00:43 UTC
After cloning a DataTable, the extended properties of columns of the resulting DataTable are gone. Debugging the application shows that the Keys are there but not the Values

Step to reproduce:

DataTable table1 = new System.Data.DataTable("Table1") ;
DataColumn c1 = table1.Columns.Add("c1") ;
c1.ExtendedProperties.Add("Company","Cegedim") ;

Debug.WriteLine("Before => {0}", c1.ExtendedProperties["Company"]) ;

table1 = table1.Clone() ;
c1 = table1.Columns["c1"] ;

Debug.WriteLine("After => {0}", c1.ExtendedProperties["Company"]) ;

Before => Cegedim
After  =>

The after value is missing
Comment 1 Rolf Bjarne Kvinge [MSFT] 2011-09-13 07:03:30 UTC
Fixed in 6c7d6c0. It will probably reach the next MonoTouch beta.
Comment 2 PJ 2012-01-05 14:17:28 UTC
Verified as Fixed on
MonoTouch 5.0.4
Mono 2.10.8
MAC 10.7.2

Fix is in release, so closing.