Commit Graph
26 Commits
Author SHA1 Message Date
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Rodrigo Kumpera c4a81454fa 2009-02-27 Rodrigo Kumpera <[email protected]>
* ReflectionPropertyDescriptor.cs: Don't cache getter and
	setter properties. Cache instead the PropertyInfo objects
	that defined them.

	PropertyInfo::Get/SetValue is faster than calling the method
	throught reflection.

svn path=/trunk/mcs/; revision=128235
2009-02-27 18:07:36 +00:00
Jb Evain 7119d6f741 simplify
svn path=/trunk/mcs/; revision=112057
2008-09-02 07:10:28 +00:00
Stephane Delcroix d13a0f2c10 replace the null colescent operator by a if-null mor mcs1. Fix the build
svn path=/trunk/mcs/; revision=112056
2008-09-02 06:44:42 +00:00
Rodrigo Kumpera 892f1f1e2f In Test/System.ComponentModel:
2008-09-01  Rodrigo Kumpera  <[email protected]>

	* PropertyDescriptorTest.cs: Tests for Get/Set Value of partial
	overrides of virtual properties.

In System.ComponentModel:
2008-09-01  Rodrigo Kumpera  <[email protected]>

	* ReflectionPropertyDescriptor.cs (SetValue, GetValue) : Lookup
	the MethodInfo for accessors in parent types in case of partial
	overrides of virtual properties.


svn path=/trunk/mcs/; revision=112052
2008-09-01 23:52:37 +00:00
Ivan Zlatev bd7ef520cb 2008-06-02 Ivan N. Zlatev <[email protected]>
* MemberDescriptor.cs, PropertyDescriptor.cs, 
	ReflectionPropertyDescriptor.cs: Implement FillAttributes.
	* MemberDescriptor.cs: 
	 - Attributes should be checked for duplicates based on their 
	 TypeId and not Type.
	 - For duplicate attributes the last one added has higher precedence.
	* ReflectionPropertyDescriptor.cs: Use the property type supplied 
	in the ctor instead of using reflection, because this won't work if 
	there are more then one property with the same name.


svn path=/trunk/mcs/; revision=104696
2008-06-02 17:30:21 +00:00
Ivan Zlatev 2fdd83da1f 2008-04-07 Ivan N. Zlatev <[email protected]>
* ReflectionPropertyDescriptor.cs: ReadOnlyAttribute has a Default,
	so there is no need for a null reference check. Fixes the attr_ro unused
	value warning during compilation.

svn path=/trunk/mcs/; revision=100000
2008-04-07 01:25:00 +00:00
Ivan Zlatev 37fe380bcc 2008-02-26 Ivan N. Zlatev <[email protected]>
* ReflectionPropertyDescriptor.cs: Use Attribute.GetCustomAttributes
	instead of PropertyInfo.GetCustomAttributes as the latter will not 
	retrieve inherited attributes.
	[Fixes bug #322464]


svn path=/trunk/mcs/; revision=96633
2008-02-26 13:09:43 +00:00
Ivan Zlatev 73ade2bcd4 2008-01-04 Ivan N. Zlatev <[email protected]>
* ReflectionPropertyDescriptor.cs: Create Transactions with 
        descriptions when setting/resetting the property.


svn path=/trunk/mcs/; revision=92223
2008-01-04 00:30:05 +00:00
Ivan Zlatev 280c2da733 2007-08-19 Ivan N. Zlatev <[email protected]>
* ReflectionPropertyDescriptor.cs: For read-only properties,
        ShouldSerializeValue must also check for 
        DesignerSerializationVisibility.Content and if present return
true.
        * PropertyDescriptorTests.cs: Tests to verify the above.


svn path=/trunk/mcs/; revision=84402
2007-08-19 15:53:33 +00:00
Gert Driesen 44545ba137 * ReflectionPropertyDescriptor.cs: For read-only properties,
ShouldSerializeValue must only take into account the return value
of the ShouldSerialize method. Code formatting.
* PropertyDescriptorTests.cs: Added test for ShouldSerializeValue
behavior with read-only properties.

svn path=/trunk/mcs/; revision=82017
2007-07-16 07:08:02 +00:00
Igor Zelmanovich 66b92d0368 2007-07-11 Igor Zelmanovich <[email protected]>
* ReflectionPropertyDescriptor: fixed ShouldSerializeValue:
	MSDN: If this method cannot find a DefaultValueAttribute or 
	a ShouldSerializeMyProperty method, it cannot create optimizations 
	and it returns true.


svn path=/trunk/mcs/; revision=81794
2007-07-11 13:09:16 +00:00
Igor Zelmanovich a12731c2ed 2007-07-11 Igor Zelmanovich <[email protected]>
* ReflectionPropertyDescriptor: fixed ShouldSerializeValue:
	avoid NullReferenceException.


svn path=/trunk/mcs/; revision=81769
2007-07-11 07:02:53 +00:00
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