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
* 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
* 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 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-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
* 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
* 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
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 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
* 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
* 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
* 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
* 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
* 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
* 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
* ReflectionPropertyDescriptor.cs (CanResetvalue): Do not
dereference a null value, avoids crash in property grid.
Code formatting police.
svn path=/trunk/mcs/; revision=59944
* 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
* 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