* 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
* CultureInfoConverterTest.cs: Added tests for ConvertFrom and
ConvertTo.
* CharConverter.cs (ConvertFrom): Avoid NRE when value is null.
Provide more info when left of value > 1.
* CultureInfoConverter.cs (ConvertFrom): Avoid NRE when value is null.
On 2.0 profile, use case-sensitive comparison for (Default) value.
Use case-insensitive comparing when value is considered as displayname.
Provide more info in exception message.
(ConvertTo): Use '(Default)' instead of '(default)' for invariant
culture.
* System_test.dll.sources: Added CharConverterTest.cs and
CultureInfoConverterTest.cs.
svn path=/trunk/mcs/; revision=95995
* CultureInfoConverter.cs:
- Handle "(default)" to and from conversion
- Sort cultures alphabetically and also cache them.
[Fixes bug #362113]
svn path=/trunk/mcs/; revision=95916
* TypeDescriptor.cs, PropertyDescriptor.cs:
Do not throw when can't find Type from string.
* ReferenceConverter.cs: Convert null value from and to string.
Return an empty StandardValueCollection.
[Part of fix for bugs #360666 and #358332]
svn path=/trunk/mcs/; revision=95874
allows a unit test for ordered result of TypeDescriptor.GetProperties
to pass.
* TypeDescriptorProperties.cs: added test for order of
PropertyDescriptor instances returned by GetProperties.
svn path=/trunk/mcs/; revision=92200
* Process.cs: Check that the process has been started before
getting or setting the priority class. Fixes bug 348415.
2007-12-19 Dick Porter <[email protected]>
* Win32Exception.cs: Add text for error 5, Access denied.
svn path=/trunk/mcs/; revision=91629
* PropertyDescriptor.cs: When adding or removing a new handler for an
existing component, update the hashtable. In GetValueChangedHandler,
return null if component is null.
* PropertyDescriptorTests.cs: Added tests for AddValueChanged,
GetInvocationTarget, GetValueChangedHandler and RemoveValueChanged.
svn path=/trunk/mcs/; revision=89659
* SynchronizationContext.cs: Implement SetSynchronizationContext.
2007-09-25 Jonathan Pobst <[email protected]>
* AsyncOperationManager.cs: Tie the SynchronizationContext here to
SynchronizationContext.Current.
2007-09-25 Jonathan Pobst <[email protected]>
* AsyncOperationManagerTest.cs: Add test for SynchronizationContext.
2007-09-25 Jonathan Pobst <[email protected]>
* System_test.dll.sources: Added AsyncOperationManagerTest.cs.
svn path=/trunk/mcs/; revision=86329
* ComponentResourceManager.cs: In ApplyResources, when culture is
null use CurrentUICulture. Use hashtable, which is case-insensitive
when IgnoreCase is true, to store the resources of the specified
culture and its parent(s). When IgnoreCase is set, perform a
case-insensitive lookup of property. Ignore resources that have no
value, or where the value is not an instance of the property type.
Fixes bug #82674.
* ComponentResourceManagerTest.cs: Added tests for ctors,
ApplyResources and IgnoreCase.
svn path=/trunk/mcs/; revision=85910
string. Made tests less strict.
* EnumConverter.cs: Added support for converting flag enum from
string.
* System_test.dll.sources: Added EnumConverterTest.cs.
svn path=/trunk/mcs/; revision=85365
GetConvertToException to match MS, and use these in ConvertFrom and
ConvertTo.
* EnumConverter.cs: Use IsFlags instead of duplicating code that
checks for FlagsAttribute. When converting to InstanceDescriptor and
no corresponding enum field is found, then let base class throw a
NotSupportedException.
* TypeConverterTest.cs: Added tests for GetConvertFromException and
GetConvertToException.
* EnumConverterTest.cs: Enabled test for converting flag enums to
InstanceDescriptor.
svn path=/trunk/mcs/; revision=85092
Modified conversion to string to support enum names and integral
values, and throw ArgumentException if value is not valid.
For conversion to InstanceDescriptor, use ConvertToString to get name
of field. Avoid endless loop when converting to Enum [].
* ToolboxItemFilterType.cs: Spaces to tabs.
* TypeConverter.cs: Improve exception messages (to match MS).
* EnumConverterTests.cs: Added tests for EnumConverter.
svn path=/trunk/mcs/; revision=84480
* 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
* TypeDescriptor.cs: GetProperties should return only the last type's
implementation of a property with a matching name in the base types.
* TypeDescriptorTests.cs: test to verify the above.
svn path=/trunk/mcs/; revision=84375
2007-08-03 Jb Evain <[email protected]>
* ProcessThreadCollection.cs
ProcessModuleCollection.cs: use our own collection base
for the 2.1 profile, as ReadOnlyCollectionBase does not exist
in 2.1, and they are internalized by the linker.
in System.ComponentModel:
2007-08-03 Jb Evain <[email protected]>
* ComponentCollection.cs: use our own collection base
for the 2.1 profile, as ReadOnlyCollectionBase does not exist
in 2.1, and they are internalized by the linker.
svn path=/trunk/mcs/; revision=83421
* BackgroundWorker.cs : remove extra MonoTODOs.
* BackgroundWorkerTest.cs : new test to clear some doubts on impl.
* System_test.dll.sources : added BackgroundWorkerTest.cs.
svn path=/trunk/mcs/; revision=83156
to a zero-length string. Modified IsDefaultAttribute to take into
account null DisplayName.
* DisplayNameAttribute.cs: Added ctor tests. Fixed tests to pass on
MS (now that our implementation matches that of MS). Added tests
for Default, GetHashCode and Equals.
svn path=/trunk/mcs/; revision=82414
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
itself for attributes as well, not only the property type.
* TypeDescriptor.cs: Make a couple of methods internal so that
PropertyDescriptor can use them.
svn path=/trunk/mcs/; revision=81879
* 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
implementation of IEnumerable.GetEnumerator.
* TypeDescriptor.cs: Params modifier applies to 1.0 profile as well.
Spaces to tabs.
svn path=/trunk/mcs/; revision=81104
* LookupBindingPropertiesAttribute.cs:
Should be sealed. Implemented GetHashCode().
* LookupBindingPropertiesAttributeTest.cs:
test GetHashCode() as well.
svn path=/trunk/mcs/; revision=78359