[Mono-dev] Patch for System.ComponentModel.TypeDescriptor

Ivan N. Zlatev contact at i-nz.net
Wed Jan 2 19:24:23 EST 2008

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.

Ivan N. Zlatev

Web: http://www.i-nZ.net
"It's all some kind of whacked out conspiracy."

More information about the Mono-devel-list mailing list