[Mono-bugs] [Bug 650389] New: DataSet.Copy doesn't honor the ICloneable interface on column data types.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Oct 31 11:19:25 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=650389

https://bugzilla.novell.com/show_bug.cgi?id=650389#c0


           Summary: DataSet.Copy doesn't honor the ICloneable interface on
                    column data types.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: cvolzke at live.com.au
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1036 Safari/532.5

When calling DataSet.Copy, if there is a column that has a data type that
implements ICloneable, ICloneable.Clone is not called but instead the reference
is copied.
This is contrary to ms.net behaviour of DataSet.Copy.


Reproducible: Always

Steps to Reproduce:
1. Create a .net type that implements ICloneable
2. Create a DataSet with a table and column of that data type
3. Populate the table with rows
4. Call DataSet.Copy()
Actual Results:  
DataRow values that implement ICloneable are copied by reference, and not by
calling ICloneable.Clone.

Expected Results:  
ICloneable.Clone should be invoked on DataRow values while copying the data.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list