Commit Graph
238 Commits
Author SHA1 Message Date
Chris Toshok e8564cfa57 In Test/System.ComponentModel:
* ComplexBindingPropertiesAttributeTest.cs: add test for Default
	field.

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

In System.ComponentModel:
	* ComplexBindingPropertiesAttribute.cs: add Default field.

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


svn path=/trunk/mcs/; revision=69845
2006-12-20 23:01:43 +00:00
Chris Toshok a506c4efe8 In Test/System.ComponentModel:
2006-12-20  Chris Toshok  <[email protected]>

	* ComplexBindingPropertiesAttributeTest.cs: new tests.

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

	* ComplexBindingPropertiesAttribute.cs: new 2.0 attribute.

In .:
2006-12-20  Chris Toshok  <[email protected]>
	* System_test.dll.sources: add ComplexBindingPropertiesAttributeTest.cs

	* System.dll.sources: add ComplexBindingPropertiesAttribute.cs


svn path=/trunk/mcs/; revision=69842
2006-12-20 21:37:18 +00:00
Chris Toshok 0ef497a233 In Test/System.ComponentModel:
2006-12-19  Chris Toshok  <[email protected]>

	* PropertyDescriptorTests.cs: add some tests here because we were
	generating an NRE for a missing type converter type.  MS doesn't -
	it instead falls back to the converter for the property type.

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

	* PropertyDescriptor.cs: stop crashing on a missing type
	converter.


svn path=/trunk/mcs/; revision=69769
2006-12-19 18:42:54 +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
Duncan Mak c69cc488fe Fix more buglets exposed by the MOMA tool.
2006-12-01  Duncan Mak  <[email protected]>

	* ArgumentOutOfRangeException.cs (.ctor): 
	* NotFiniteNumberException.cs (.ctor): Add the 2.0 constructor
	that takes a string and an inner Exception.

2006-12-01  Duncan Mak  <[email protected]>

	* AddingNewEventArgs.cs: 
	* AddingNewEventHandler.cs: Added.

	* ListChangedEventArgs.cs (.ctor): Uncomment the bit about
	property descriptor now that there's an implementation of it.
	(PropertyDescriptor): New 2.0 property.

svn path=/trunk/mcs/; revision=68874
2006-12-02 03:34:32 +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
Miguel de Icaza e24b3f582e 2006-11-28 Miguel de Icaza <[email protected]>
* TypeDescriptor.cs: This implementation is really from Gonzalo,
	he dictated to me :-)



svn path=/trunk/mcs/; revision=68627
2006-11-28 23:08:03 +00:00
Nagappan Alagappan 298113eb94 2006-11-20 Nagappan A <[email protected]>
* ISupportInitializeNotification.cs: New Interface file to support
	NET 2.0 features.


svn path=/trunk/mcs/; revision=68174
2006-11-20 06:37:26 +00:00
Marek Habersack e2cd975c9e Implementation of the DisplayNameAttribute class and associated tests. The previous had TraceEventCache.cs mentioned in the System.dll.sources file - it shouldn't have been there. Sorry about the problem it caused.
svn path=/trunk/mcs/; revision=67740
2006-11-12 21:21:50 +00:00
Robert Jordan 4d638c8046 Fix the build (reverted r67723 due to a missing file).
svn path=/trunk/mcs/; revision=67726
2006-11-11 23:35:24 +00:00
Marek Habersack 767df60d24 Added implementation of System.ComponentModel.DisplayNameAttribute and associated tests
svn path=/trunk/mcs/; revision=67723
2006-11-11 20:26:18 +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
Gert Driesen 6bf6e7f264 * System_test.dll.sources: Added ArrayConverterTests.cs.
* ArrayConverter.cs: Modifed ConvertTo for Array => String to match
MS. In GetProperties, throw NRE to match MS.
* ArrayConverterTests.cs: Added tests for ArrayConverter.

svn path=/trunk/mcs/; revision=67548
2006-11-08 19:53:28 +00:00
Chris Toshok 950ed2d29e remove unused field
svn path=/trunk/mcs/; revision=67544
2006-11-08 16:55:17 +00:00
Chris Toshok 33b0d070ee 2006-11-08 Chris Toshok <[email protected]>
* ArrayConverter.cs: implement GetProperties correctly, by
	creating ArrayPropertyDescriptor objects for each array element.


svn path=/trunk/mcs/; revision=67543
2006-11-08 16:54:58 +00:00
Andrew Skiba 72d2aae2e2 Implement event handler list according to MS definition
svn path=/trunk/mcs/; revision=67455
2006-11-07 14:01:58 +00:00
Alexander Olk e325f817ae Throw an ArgumentNullException if value or objectName is null.
svn path=/trunk/mcs/; revision=67095
2006-10-29 16:42:31 +00:00
Alexander Olk c5bf894ac1 * ComponentResourceManager.cs: Make ApplyResources work.
Instead of iterating through the resource set table we now
	  read the property infos of an object and check if there is
	  an item in the resource set for each property info. This makes
	  it finally possible to create language dependent resources
	  that do not have to include everything from a parent culture
	  resource (mostly invariant culture).

2006-10-29 Alexander Olk <[email protected]>


svn path=/trunk/mcs/; revision=67090
2006-10-29 16:01:25 +00:00
Alexander Olk 31181ed8f3 In System/System.ComponentModel:
2006-10-29 Alexander Olk <[email protected]>

	* ComponentResourceManager.cs: Don't close the resource set in
	  ApplyResources, it is possible to call ApplyResources multiple
	  times. Closing the resource set means that it gets disposed.
	  Fixes bug #79182.

In corlib/System.Resources:
2006-10-29  Alexander Olk  <[email protected]>

	* ResourceSet.cs, ResourceManager.cs: Calling ResourceSet.Close()
	  disposes a resource set. A closed resource set will now be
	  removed from ResourceSets. Fixes bug #79182.


svn path=/trunk/mcs/; revision=67076
2006-10-29 10:02:00 +00:00
Raja R Harinath 9bdec12456 Kill all executable flags on *.cs and ChangeLog files.
AKA: fun with find(1)+xargs(1)
AKA: find . -name \*.cs -and -perm /a+x | xargs svk propdel svn:executable

svn path=/trunk/mcs/; revision=66131
2006-09-30 18:29:13 +00:00
Andrew Skiba 217f1306af TARGET_JVM
svn path=/trunk/mcs/; revision=66028
2006-09-28 13:39:13 +00:00
Gonzalo Paniagua Javier 405ec62f26 2006-09-11 Gonzalo Paniagua Javier <[email protected]>
* Test/System.ComponentModel/ContainerTest.cs:
	* System.ComponentModel/Container.cs: 'unsite' the component when
	removing it. Fixes bug #79255. Patch by Ivan N. Zlatev.


svn path=/trunk/mcs/; revision=65261
2006-09-11 22:57:06 +00:00
Gonzalo Paniagua Javier 35a49d5a64 2006-09-11 Gonzalo Paniagua Javier <[email protected]>
* Test/System.ComponentModel/TypeDescriptorTests.cs: test for overriden
	attributes.
	* System.ComponentModel/TypeDescriptor.cs: don't ignore toplevel
	attributes when they are overriden.

	Patch by Ivan N. Zlatev that fixes bug #79256.


svn path=/trunk/mcs/; revision=65242
2006-09-11 16:45:06 +00:00
Kornél Pál 546a1134d2 Converted source files to UTF-8 (without byte order mark). Use UTF-8 as the default encoding for compilers.
svn path=/trunk/mcs/; revision=64941
2006-09-05 13:54:12 +00:00
Gert Driesen f678ff49a5 * InvalidEnumArgumentException.cs: Beautify error message.
svn path=/trunk/mcs/; revision=64077
2006-08-20 09:04:01 +00:00
Raja R Harinath 0b83d5af45 * IRaiseItemChangedEvents.cs: Add. Mentioned in #79012.
svn path=/trunk/mcs/; revision=63717
2006-08-14 12:55:27 +00:00
Miguel de Icaza 693d6324d1 Fix namespace
svn path=/trunk/mcs/; revision=63690
2006-08-14 01:08:57 +00:00
Sebastien Pouliot 7af1580018 2006-07-31 Sebastien Pouliot <[email protected]>
* InvalidEnumArgumentException.cs: Updated to 2.0.
	* LicenseException.cs: Updated to 2.0. Add a demand for 
	SerializationFormatter on GetObjectData method.
	* TypeDescriptor.cs: Add linkdemand for ReflectionPermission on 
	CreateEvent and CreateProperties methods. Add linkdemand for 
	unrestricted on ComNativeDescriptorHandler get/set.
	* WarningException.cs: Updated to 2.0. Add a demand for 
	SerializationFormatter on GetObjectData method.
	* Win32Exception.cs: Add a demand for SerializationFormatter on 
	GetObjectData method.


svn path=/trunk/mcs/; revision=63178
2006-07-31 13:30:22 +00:00
Peter Dennis Bartok 80b635ec5f 2006-07-14 Peter Dennis Bartok <[email protected]>
* System.dll.sources: Added System.ComponentModel/MaskedTextResultHint.cs

2006-07-14  Peter Dennis Bartok  <[email protected]>

	* MaskedTextResultHint.cs: Added


svn path=/trunk/mcs/; revision=62608
2006-07-14 16:18:49 +00:00
Gert Driesen f1c67c6a48 * TypeConverter.cs: Added explicit interface implementation for
ICollection.CopyTo and IEnumerable.GetEnumerator. Fixes corcompare
warnings.
* Component.cs: Remove TypeConverter attribute. Fixes corcompare
warning.
* AttributeCollection.cs: Added explicit interface implemenation for
IEnumerable.GetEnumerator, IList.RemoveAt and ICollection.Count.
Fixes corcompare warnings.
* PropertyDescriptorCollection.cs: Added explicit interface
implemenation for ICollection.Count. Fixes corcompare warning.

svn path=/trunk/mcs/; revision=61323
2006-05-31 13:20:33 +00:00
Atsushi Eno e37046098b 2006-05-22 Atsushi Enomoto <[email protected]>
* TypeDescriptor.cs : GetProperties() does not return indexers.

	* TypeDescriptorTest.cs : added GetPropertiesIgnoreIndexers().


svn path=/trunk/mcs/; revision=60947
2006-05-22 15:23:02 +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
Atsushi Eno 3f1b116ef3 2006-05-08 Atsushi Enomoto <[email protected]>
* AsyncOperation.cs : SynchronizationContext.OperationStarted()
	  should not be called more than once. So move it from Post() to
	  .ctor(). Thanks again to cl.


svn path=/trunk/mcs/; revision=60399
2006-05-08 11:28:22 +00:00
Atsushi Eno dd4a68fbba 2006-05-08 Atsushi Enomoto <[email protected]>
* AsyncOperation.cs : call OperationStared() at Post(). Call
	  OperationCompleted() at the finalizer. Thanks to cl.


svn path=/trunk/mcs/; revision=60398
2006-05-08 10:09:53 +00:00
Atsushi Eno e83a8ae7ee 2006-05-08 Atsushi Enomoto <[email protected]>
* System.dll.sources : added SettingsBindableAttribute.cs.

	* SettingsBindableAttribute.cs : new file. Bug #78333 is fixed.


svn path=/trunk/mcs/; revision=60393
2006-05-08 06:12:13 +00:00
Miguel de Icaza 5b04256587 svn path=/trunk/mcs/; revision=60025 2006-04-28 02:55:58 +00:00
Miguel de Icaza d0f5a44f83 Nothing to see here, move along
svn path=/trunk/mcs/; revision=59951
2006-04-26 21:12:08 +00:00
Miguel de Icaza bd78760dff 2006-04-26 Miguel de Icaza <[email protected]>
* TypeDescriptor.cs (Info.GetProperties, TypeInfo.GetProperties):
	Use the more specific GetProperties call so we do not return
	static properties, should fix that part of the PropertyGrid bug
	#78192.

	Code formatting police hit again.

svn path=/trunk/mcs/; revision=59948
2006-04-26 20:56:24 +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 7938830e92 Improve error message
svn path=/trunk/mcs/; revision=59890
2006-04-25 23:37:10 +00:00
Miguel de Icaza 033abbfaaa 2006-04-25 Miguel de Icaza <[email protected]>
* TypeConverter.cs (ConvertFrom): Do not crash if we are passed a
	null value. 

svn path=/trunk/mcs/; revision=59887
2006-04-25 23:20:01 +00:00
Atsushi Eno 68694ee948 2006-04-25 Atsushi Enomoto <[email protected]>
* BaseNumberConverter.cs : (ConvertTo) regardless of InnerType,
	  it converts the argument value to InnerType using supplied format.
	  (It might be not limited to NET_2_0 but it's too cosmetic to dig
	  into the problem. At least this is for run-test-ondotnet fixes.)

	* ByteConverterTests.cs,
	  DecimalConverterTests.cs,
	  DoubleConverterTests.cs,
	  Int16ConverterTests.cs,
	  Int64ConverterTests.cs,
	  SByteConverterTests.cs,
	  SingleConverterTests.cs,
	  UInt16ConverterTests.cs,
	  UInt32ConverterTests.cs,
	  UInt64ConverterTests.cs:
	  ConvertToString() (test with custom culture) failed on .NET 2.0.
	  Fixed it by adding NumberFormat override in each test culture.


svn path=/trunk/mcs/; revision=59860
2006-04-25 16:43:57 +00:00
Atsushi Eno ce95277afa 2006-04-17 Atsushi Enomoto <[email protected]>
* BackgroundWorker.cs, RunWorkerCompletedEventArgs.cs :
	  cosmetic attribute fixes.


svn path=/trunk/mcs/; revision=59533
2006-04-17 11:14:07 +00:00
Atsushi Eno 574b90cd78 2006-04-17 Atsushi Enomoto <[email protected]>
* AsyncOperation.cs,
	  AsyncOperationManager.cs
	  BackgroundWorker.cs
	  DoWorkEventArgs.cs
	  DoWorkEventHandler.cs
	  RunWorkerCompletedEventArgs.cs
	  RunWorkerCompletedEventHandler.cs :
	  Initial implementation of AsyncOperation and BackgroundWorker.

	  (However I think it does not work as expected - it depends on
	  SynchronizationContext.Post() and I doubt it works fine - the
	  callback should run synchronously while it does not look so.)

	* System.dll.sources : Added AsyncOperation.cs,
	  AsyncOperationManager.cs, BackgroundWorker.cs,
	  DoWorkEventHandler.cs, DoWorkEventArgs.cs,
	  RunWorkerCompletedEventArgs.cs and
	  RunWorkerCompletedEventHandler.cs.


svn path=/trunk/mcs/; revision=59532
2006-04-17 10:56:45 +00:00
Atsushi Eno f306f4ae0b 2006-03-30 Atsushi Enomoto <[email protected]>
* AsyncCompletedEventArgs.cs : constructor did not initialize fields.


svn path=/trunk/mcs/; revision=58770
2006-03-30 04:09:04 +00:00
Atsushi Eno 6c4b199ce6 2006-03-28 Atsushi Enomoto <[email protected]>
* System.dll.sources : added ProgressChangedEvent[Args|Handler] in
	  System.ComponentModel, and several WebClient event args in
	  System.Net.

	* ProgressChangedEventHandler.cs ProgressChangedEventArgs.cs :
	  added 2.0 types.

	* DownloadDataCompletedEventArgs.cs
	  DownloadDataCompletedEventHandler.cs
	  DownloadProgressChangedEventArgs.cs
	  DownloadProgressChangedEventHandler.cs
	  DownloadStringCompletedEventArgs.cs
	  OpenReadCompletedEventArgs.cs
	  OpenReadCompletedEventHandler.cs
	  OpenWriteCompletedEventArgs.cs
	  OpenWriteCompletedEventHandler.cs
	  UploadDataCompletedEventArgs.cs
	  UploadDataCompletedEventHandler.cs
	  UploadFileCompletedEventArgs.cs
	  UploadFileCompletedEventHandler.cs
	  UploadProgressChangedEventArgs.cs
	  UploadProgressChangedEventHandler.cs
	  UploadStringCompletedEventArgs.cs
	  UploadStringCompletedEventHandler.cs
	  UploadValuesCompletedEventArgs.cs
	  UploadValuesCompletedEventHandler.cs : added 2.0 types.


svn path=/trunk/mcs/; revision=58647
2006-03-28 10:18:20 +00:00
Pedro Martínez Juliá d8187c87ca 2006-02-26 Pedro Martinez Julia <[email protected]>
* HandledEventHandler.cs: Resolving a "Replaced" SVN flag.


svn path=/trunk/mcs/; revision=57295
2006-02-26 01:18:45 +00:00
Andrew Skiba 470cecb9dc performance improvement for TypeDescriptor.GetAttributes,GetProperties and GetEvents. See the standalone test for the use case.
svn path=/trunk/mcs/; revision=57197
2006-02-23 11:40:25 +00:00