Vladimir Krasnov wrote:
>  
>  
> Hello,
> 
> Please review and approve attached patch for
> TypeDescriptor.GetProperties() method. This fixes the order of
> properties in the returning collection which is important for System.Web
> data bound controls.
> 

You can get rid off the Hashtable used in TypeInfo.GetProperties. I
introduced it because at some point Type.GetProperties used to return
two AnotherProperty PropertyInfos for typeof(B) in the following case:

        class A
        {
                public string AnotherProperty {
                }
        }

        class B : A
        {
                public new string AnotherProperty {
                }
        }

It seems to no longer be the case (back then I did not test the
Type.GetProperties behavior on msnet and assumed bug in TypeDescriptor),
but you should test to make sure. You can check test #G2 in
TestGetProperties in TypeDescriptorTests.

Regards,
-- 
Ivan N. Zlatev

Web: http://www.i-nZ.net
"It's all some kind of whacked out conspiracy."
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to