http://bugzilla.novell.com/show_bug.cgi?id=509199


           Summary: Clipboard.SetDataObject doesn't handle objects that
                    implement IDataObject correctly. .NET difference
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


Created an attachment (id=295797)
 --> (http://bugzilla.novell.com/attachment.cgi?id=295797)
Test Programing using SetDataObject with object that implements IDataObejct 

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10)
Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10


If you do something like:

Clipboard.SetDataObject(new MyIDataObject(), false);
IDataObject dobj = Clipboard.GetDataObject();
Console.WriteLine(dobj.GetData("string"));

dobj.GetData() doesn't return expected result.

Reproducible: Always

Steps to Reproduce:
1. Compile and run Attached Test case
2.
3.
Actual Results:  
IDataObject.GetFormats()
IDataObject.GetData(string)

Expected Results:  
IDataObject.GetFormats(bool)
IDataObject.GetDataPresent(string,bool)
IDataObject.GetData(string,bool)
Hello World

-- 
Configure bugmail: http://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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to