[Mono-bugs] [Bug 681835] New: ContentPropertyAttribute not working correctly for IList property

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 23 03:52:17 EDT 2011



           Summary: ContentPropertyAttribute not working correctly for
                    IList property
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: stevens+novell at ischyrus.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16

If there is a property that is IList<T> (or I assume just IList) you can use
the ContentPropertyAttribute to mark it as the target of children nodes in

This isn't working correctly in mono.

Reproducible: Always

Steps to Reproduce:
1. Create a type that has a property of IList<T>
2. Decorate the class with ContentPropertyAttribute
3. Create a xaml file to populate the list, putting the items as direct
children of the type
Actual Results:  
System.Xaml.XamlObjectWriterException: Value 'SecondTest.TypeOtherAssembly' (of
type SecondTest.TypeOtherAssembly) is not of or convertible to type
SecondTest.TypeOtherAssembly (member
  at System.Xaml.XamlObjectWriterInternal.DoGetCorrectlyTypedValue
(System.Xaml.XamlMember xm, System.Xaml.XamlType xt, System.Object value)
[0x00167] in
  at System.Xaml.XamlObjectWriterInternal.GetCorrectlyTypedValue
(System.Xaml.XamlMember xm, System.Xaml.XamlType xt, System.Object value)
[0x00000] in

Expected Results:  
Type should load

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

More information about the mono-bugs mailing list