Commit Graph
13 Commits
Author SHA1 Message Date
Chris Toshok a65a389528 In Test/System.ComponentModel:
* PropertyDescriptorTests.cs: add a test to see if
	ShouldSerializeValue's return value affects CanResetValue.

2006-12-06  Chris Toshok  <[email protected]>

In System.ComponentModel:
	* ReflectionPropertyDescriptor.cs: turns out if "ShouldSerialize*"
	is present and returns false, "CanReset*" also returns false.

2006-12-06  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=69139
2006-12-06 23:22:18 +00:00
Chris Toshok c7269d1d3a In Test/System.ComponentModel:
* PropertyDescriptorTests.cs: add a test for ShouldSerializeValue
	and CanResetValue on a class without ShouldSerialize/Reset
	methods.

2006-12-06  Chris Toshok  <[email protected]>

In System.ComponentModel:
	* ReflectionPropertyDescriptor.cs: ShouldSerializeValue should
	return false if there's no ShouldSerialize method.

2006-12-06  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=69138
2006-12-06 22:40:48 +00:00
Chris Toshok 825e4be3c1 In Test/System.ComponentModel:
2006-12-06  Chris Toshok  <[email protected]>

	* PropertyDescriptorTests.cs: flesh out these tests more with some
	for ShouldSerialize and CanReset.

In System.ComponentModel:
2006-12-06  Chris Toshok  <[email protected]>

	* ReflectionPropertyDescriptor.cs: fixes for CanResetValue and
	ShouldSerializeValue - we need to find both public and nonpublic
	methods.


svn path=/trunk/mcs/; revision=69136
2006-12-06 22:12:28 +00:00
Miguel de Icaza e3990cf9e1 2006-11-29 Ivan N. Zlatev <[email protected]>
* MemberDescriptor.cs, ReflectionPropertyDescriptor.cs: 1) The
	ReflectionPropretyDescriptor must be able to operate with non
	public properties.

	2) The current implementation ignores the fact that the component
	can be in design mode. In design mode some of the properties (the
	design-time ones) are supposed to be redirected to the
	designer. The component which should be used to access the
	property is retrieved by using MemberDescriptor.GetInvokee
	(implemented in the patch). Updated the
	ReflectorPropertyDescriptor to use GetInvokee to decide which
	component should it use.

	Reviewed by: Miguel de Icaza


svn path=/trunk/mcs/; revision=68728
2006-11-30 03:52:42 +00:00
Chris Toshok df1e796759 2006-11-09 Chris Toshok <[email protected]>
* ReflectionPropertyDescriptor.cs: IsReadOnly needs to take into
	account the ReadOnlyAttribute.


svn path=/trunk/mcs/; revision=67572
2006-11-09 05:02:06 +00:00
Atsushi Eno 5ca07bbea4 2006-05-11 Atsushi Enomoto <[email protected]>
* ReflectionPropertyDescriptor.cs,
	  DerivedPropertyDescriptor.cs : invoke OnValueChanged() when
	  the value was successfully changed. It is needed to have
	  MWF PropertyGrid change properties successfully.


svn path=/trunk/mcs/; revision=60601
2006-05-11 17:25:29 +00:00
Miguel de Icaza cd0e3e4e9c 2006-04-26 Miguel de Icaza <[email protected]>
* ReflectionPropertyDescriptor.cs (CanResetvalue): Do not
	dereference a null value, avoids crash in property grid.

	Code formatting police. 

svn path=/trunk/mcs/; revision=59944
2006-04-26 19:46:04 +00:00
Miguel de Icaza df9107bf8e Further fixes from Michael
svn path=/trunk/mcs/; revision=48093
2005-08-07 22:25:18 +00:00
Miguel de Icaza 7bc67ec4e8 2005-08-07 Michael Hutchinson <[email protected]>
Patch from Michael Hutchinson to make the aspnet editor work. 
	
	* ReflectionPropertyDescriptor.cs: Create transactions and raise
	component change events for all IComponents, not just base
	implementation 'Component' derivatives.

	* MemberDescriptor.cs: Make members 'Browsable' by default, as per
	MS spec.

	* PropertyDescriptor.cs: Changed default
	DesignerSerializationVisibility value to Visible rather than
	Hidden, as per MS spec.

svn path=/trunk/mcs/; revision=48090
2005-08-07 18:32:53 +00:00
Gonzalo Paniagua Javier 1d9c9e2441 Fix warnings
svn path=/trunk/mcs/; revision=43368
2005-04-21 00:47:25 +00:00
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +00:00
Lluis Sanchez 13e6c4c423 2004-04-16 Lluis Sanchez Gual <[email protected]>
* ReflectionPropertyDescriptor.cs: Access internal PropertyInfo through
	GetPropertyInfo(). Take into account that a component may not be sited or
	not have some services.
	* TypeDescriptor.cs: GetTypeFromName():  Added null check for Site property.
	Other minor fixes.

2004-04-16	Joerg Rosenkranz <[email protected]>

	* TypeDescriptor.cs: Fixed implementation of GetConverter.
	  This fixes #57137.

svn path=/trunk/mcs/; revision=25616
2004-04-16 18:22:14 +00:00
Lluis Sanchez 650c8f9a5b * System.dll.sources: Added
System.ComponentModel/ReflectionEventDescriptor.cs,
		System.ComponentModel/ReflectionPropertyDescriptor.cs.

svn path=/trunk/mcs/; revision=25474
2004-04-14 14:52:33 +00:00