[Mono-bugs] [Bug 509151] New: System.ComponentModel.Design.Serialization.ContextStack.this[Type] bag. Microsoft.Net search in collection by 'type.IsInstanceOfType(o)' Mono search 'contextList[i].GetType() == type'

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jun 2 12:21:58 EDT 2009


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


           Summary: System.ComponentModel.Design.Serialization.ContextStac
                    k.this[Type] bag. Microsoft.Net search in collection
                    by 'type.IsInstanceOfType(o)' Mono search
                    'contextList[i].GetType() == type'
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: openconcept.net at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.4)
Gecko/2008102920 Firefox/3.0.4 GTB5 (.NET CLR 3.5.30729)

When ContextStack get item this[Type]
Good: Microsoft.Net search in collection use type.IsInstanceOfType(o)
Bag: Mono search in collection use 'contextList[i].GetType() == type'
Sample
class Boo : Foo
{
}

class Foo
{
}

ContextStack stack = new ContextStack()
stack.Push(new Boo());
Boo boo = stack[typeof(Foo)];

Microsoft.Net return Boo
Mono return null

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Actual Results:  
class Boo : Foo
{
}

class Foo
{
}

ContextStack stack = new ContextStack()
stack.Push(new Boo());
Boo boo = stack[typeof(Foo)];


Expected Results:  
Microsoft.Net return Boo
Mono return null

-- 
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.


More information about the mono-bugs mailing list