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
deprecated Assertion. Added test for component that has a site without
an ITypeDescriptorFilterService. Fixes bug #80836.
* TypeDescriptor.cs: Do not assume that an ISite always has an
ITypeDescriptorFilterService. Fixes bug #80836.
svn path=/trunk/mcs/; revision=73040
* RecommendedAsConfigurableAttribute.cs: Make this non-obsolete to fix
the 2.0 build, since System.ServiceProcess.ServiceController uses it.
svn path=/trunk/mcs/; revision=71428
2007-01-20 Chris Toshok <[email protected]>
* BindingListTest.cs: new tests for BindingList<T>
In System.ComponentModel:
2007-01-20 Chris Toshok <[email protected]>
* BindingList.cs: new class.
svn path=/trunk/mcs/; revision=71405
* DataObjectFieldAttribute.cs: Add new file.
2007-01-12 Miguel de Icaza <[email protected]>
* Trace.cs: Add a number of 2.0 overloads.
svn path=/trunk/mcs/; revision=70948
into account for DisplayName. Fixes bug #80292.
* PropertyDescriptorTests.cs: Added test for bug #80292. Fixed
accessibility of NestedClass, not caugh due to bug #80338.
svn path=/trunk/mcs/; revision=69895
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