Bug 18751 - Dataset.GetXml throws an InvalidOperationException when column is type of object
Summary: Dataset.GetXml throws an InvalidOperationException when column is type of object
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Data (show other bugs)
Version: 3.2.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-04-02 11:36 UTC by Alexandre Pepin
Modified: 2017-06-16 13:26 UTC (History)
5 users (show)

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


Attachments

Description Alexandre Pepin 2014-04-02 11:36:06 UTC
Dataset.GetXml throws an InvalidOperationException when column is type of object. It works in windows, but doesn't work in mono

Sample :

DataSet s = new DataSet();
DataTable t = s.Tables.Add();
t.Columns.Add("col2", typeof(object));
t.Rows.Add("ligne1");
Console.WriteLine(s.GetXml());
Comment 1 Alexander Köplinger 2015-04-05 19:35:39 UTC
This no longer repros on Mono master where System.Data was replaced with MS referencesource code.

Note You need to log in before you can comment on or make changes to this bug.