New test.
[mono.git] / mcs / class / System / System.ComponentModel / ChangeLog
index fe619f1e3d1c0a6b96497e421dcafc08167af80e..8e68d59004f1aaaa1590ac2584798dd452e71f65 100644 (file)
@@ -1,3 +1,370 @@
+2010-03-20  Miguel de Icaza  <miguel@novell.com>
+
+       * TypeDescriptor.cs: Remove warning.
+
+2010-03-16  Jb Evain  <jbevain@novell.com>
+
+       * TypeConverter_2_1.cs, ComponentCollection.cs,
+       PropertyDescriptor.cs: use MOONLIGHT symbol to disambiguate
+       MonoTouch and Moonlight code.
+
+2010-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * MaskedTextProvider.cs: In ToString() if we are a password, use the
+       prompt char in the places where no char has been filled in yet, instead of
+       putting the password char.
+       Fixes #360407.
+
+2010-01-15  Alexandre Gomes  <alexmipego@gmail.com>
+
+       * BaseNumberConverter.cs: Fixed CanConvertTo and ConvertTo when
+       targeting primitive types.
+
+2009-12-08  Marek Habersack  <mhabersack@novell.com>
+
+       * TypeDescriptor.cs: AddProvider overloads must refresh the
+       instance and type when called.
+       If GetProvider (object) fails to look up provider for the passed
+       instance, it attempts to look up provider for the instance's
+       type.
+       GetProvider (Type) looks for providers using all the parent types
+       of the passed type if no provider for it is found.
+       WrappedTypeDescriptionProvider.GetTypeDescriptor chains up to the
+       wrapped type, if present.
+
+       * TypeDescriptionProvider.cs: GetTypeDescriptor properly returns
+       the value obtained from parent in GetTypeDescriptor.
+
+2009-11-30  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * TypeConverterAttribute.cs: Add missing [ComVisible] for SL2/3 builds
+
+2009-10-14  Jonathan Pryor  <jpryor@novell.com>
+
+       * TypeConverter_2_1.cs: Skip this type in the MonoTouch profile;
+         MonoTouch will be using the 2.0 version of TypeConverter.
+       * ComponentCollection.cs, PropertyDescriptor.cs: MonoTouch uses the
+         .NET 2.0 versions of these types.
+
+2009-09-29  Alan McGovern  <amcgovern@novell.com>
+
+       * DefaultValueAttribute.cs: Implement the cctor which takes
+       a Type and a string for the SL2 case.
+       * CategoryAttribute.cs: Fix a typo in the CategoryAttribute.Asynchronous
+       ctor and fix some SL2 specific naming changes for the default properties.
+
+2009-09-24  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * EnumConverter.cs: Fix conversion of 0 flag values.
+       [Fixes bug #541402]
+
+2009-07-22  Jb Evain  <jbevain@novell.com>
+
+       * ExpandableObjectConverter.cs: no method to override for a NET_2_1 profile.
+
+2009-07-20  Tom Hindle <tom_hindle@sil.org>
+
+       * Container.cs: Replaced for loop with for loop.
+       [Fixes bug #522474]
+
+2009-07-19  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Container.cs: Use generic list on 2.0 profile, and avoid using var
+       on 1.0 profile. Use for loop instead of while in Dispose to avoid
+       accessing count on each iteration.
+
+2009-07-19  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Container.cs: Avoid NRE in Remove and RemoveWithoutUnsiting.
+
+2009-07-18  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Container.cs: Changed Dispose(bool) behaviour to match .NET, based
+       on patch by Tom Hindle (tom_hindle@sil.org). Also use ValidateName
+       in Add overloads on 1.0 profile by making it available as private
+       method. Use case-insensitive comparison of component name.
+
+2009-06-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * LicenseProviderAttribute.cs: avoid nullref when provider has not
+       been set or cannot be loaded.
+
+2009-06-23  Marek Habersack  <mhabersack@novell.com>
+
+       * TypeDescriptor.cs: do not wrap DefaultTypeDescriptionProvider.
+       Implemented GetAttributes and GetProperties in
+       DefaultTypeDescriptor.
+
+       * AttributeCollection.cs: make sure that attrList is never null.
+
+2009-06-22  Marek Habersack  <mhabersack@novell.com>
+
+       * WeakObjectWrapper.cs, WeakObjectWrapperComparer.cs: added - used
+       by TypeDescriptor for storage of type description providers.
+
+       * TypeDescriptor.cs: implemented part of the 2.0+ API which deals
+       with adding/removing/getting type description providers.
+
+       * AttributeCollection.cs: do not throw NREX when attrList is
+       null in Count.
+
+2009-05-14  Jonathan Pryor  <jpryor@novell.com>
+
+       * ListChangedEventArgs.cs: Fix .NET compatibility problems (discovered
+         from trying to run the System.Data.Linq unit tests).
+
+2009-04-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * Win32Exception.cs: made W32ErrorMessage internal.
+
+2009-02-28  Zoltan Varga  <vargaz@gmail.com>
+
+       * EventHandlerList.cs: Change this to use a linked list as stated by the
+       MSDN docs.
+
+2009-02-27  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * 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.    
+
+2009-02-21  Kornél Pál  <kornelpal@gmail.com>
+
+       * EventHandlerList.cs: Fix profile 1.x build by not using HandlerEntry.
+
+2009-02-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * EventHandlerList.cs: there's no need for HandlerEntry here.
+       Just store the delegate.
+
+2009-02-19  Marek Habersack  <mhabersack@novell.com>
+
+       * AttributeCollection.cs: this [Type] shouldn't throw a NREX when
+       attrList is null.
+
+       * TypeDescriptor.cs: GetConverter (Type) must throw
+       ArgumentNullException if the passed parameter is null.
+       FindDefaultConverterType should gracefully cope with type being
+       null.
+
+2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * BindingList.cs: Add calls InsertItem which raises OnListChanged, so 
+       don't raise a duplicate OnListChanged in AddNewCore.
+
+2008-12-22  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * ReferenceConverter.cs: Implemented.
+       [Fixes bug #381435]
+
+2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * TypeDescriptor.cs: Added support for NullableConverter.
+
+2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * NullableConverter.cs: Implemented.
+
+2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * ListSortDescriptionCollection.cs: Add the items supplied in the 
+       ctor to the internal list.
+
+2008-11-21  Rolf Bjarne Kvinge  <rkvinge@novell.com>
+
+       * TypeConverter_2_1.cs: fix method signatures to match SL2 api.
+
+2008-11-20  Jb Evain  <jbevain@novell.com>
+
+       * TypeConverter_2_1.cs: update to SL2 api.
+
+2008-11-12  Jb Evain  <jbevain@novell.com>
+
+       * IComponent.cs
+       * ComponentCollection.cs
+       * PropertyDescriptor.cs: adjust api for NET_2_1.
+
+2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
+
+       * BackgroundWorker.cs: If the user sets Cancel to true, but then
+       throws an exception in DoWork, we need to set Cancel back to false.
+       [Fixes bug #328830]
+
+2008-09-01  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * ReflectionPropertyDescriptor.cs (SetValue, GetValue) : Lookup
+       the MethodInfo for accessors in parent types in case of partial
+       overrides of virtual properties.
+
+2008-08-07  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * DefaultValueAttribute.cs: Fix Equals (wrt boxing) and 
+       GetHashCode (wrt NRE on null Value).
+       * PropertyChangedEventArgs.cs: Property PropertyName is not
+       virtual for NET_2_1
+
+2008-07-31  Jb Evain  <jbevain@novell.com>
+
+       * BackgroundWorker.cs
+       * DoWorkEventArgs.cs
+       * DefaultValueAttribute.cs
+       * RunWorkerCompletedEventArgs.cs: clean up for NET_2_1.
+
+       * TypeConverter_2_1.cs: new specific type for NET_2_1.
+
+2008-07-23  Marek Habersack  <mhabersack@novell.com>
+
+       * EventHandlerList.cs: optimize the implementation.
+
+2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * TypeDescriptor.cs: Attributes precendence (higher to lower) 
+       should be type -> base types -> interfaces and not 
+       type -> interfaces -> base types.
+
+2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * TypeDescriptor.cs: 
+        - Refactor the default converters table not to be a Hashtable, 
+        because the order of the keys is not preserved.
+        - Fix FindDefaultConverterType to properly make use of the default 
+        converters.
+
+2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * TypeDescriptor.cs: 
+        - Fix GetConverter (Type) overload to have same logic as the 
+        object one.
+        - Object-ReferenceConverter should be the last entry in the predefined 
+        converters table, so that when we look up we don't end up with the wrong 
+        converter for derived types.
+
+2008-07-16  Jonathan Pobst  <monkey@jpobst.com>
+
+       Apply patch from Achille Fouilleul (achille.fouilleul at gadz dot org)
+
+       * BackgroundWorker.cs: Ensure the async object is set to null before
+       calling RunWorkerCompleted, as IsBusy is based off the async object.
+       [Fixes bug #394365]
+
+2008-07-16  Jonathan Pobst  <monkey@jpobst.com>
+       
+       Apply patches from Jordan Callicoat (MonkeeSage at gmail dot com)
+
+       * AsyncCompleteEventArgs.cs: RaiseExceptionIfNecessary should throw
+       TargetInvocationException if there was an exception, and IOE if
+       the operation was cancelled.
+       * BackgroundWorker.cs: Do not call RunWorkerCompleted from CancelAsync,
+       setting cancel_pending to true is enough.
+       * RunWorkerCompletedEventArgs.cs: Raise exceptions when user tries
+       to access the Result if there are any exceptions.
+       [Fixes bugs #328830 and 373153]
+
+2008-07-01  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * PropertyDescriptorCollection.cs : Kill some foreach loops.
+
+2008-06-27  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * PropertyDescriptorCollection.cs : huh.
+
+2008-06-27  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * EventDescriptorCollection.cs: Fixed Empty to return read-only
+       collection. In a read-only collection, throw NotSupportedException
+       instead of InvalidOperationException when attempting to modify the
+       collection. Fixed find to use ordinal comparison on 2.0 profile.
+       Fixed IList's IsFixedSize and IsReadOnly.
+       * PropertyDescriptorCollection.cs (Find): Use key as argument name
+       when name is null. Silly compatiblity fix. 
+
+2008-06-27  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * EventDescriptorCollection.cs: Fixed NRE in Sort overloads when order
+       string array is null.
+       * PropertyDescriptorCollection.cs: Fixed NRE in Sort overloads when
+       order string array is null.
+
+2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * PropertyDescriptorCollection.cs, EventDescriptorCollection.cs, 
+       MemberDescriptor.cs: Implement proper sorting of descriptors by 
+       comparing their names.
+       [Fixes bug #403882]
+
+2008-06-25  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * TypeDescriptor.cs: Fix a NRE.
+       [Fixes bug #403880]
+
+2008-06-11  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DateTimeConverter.cs : use MM for month instead of mm.
+         Fixed bug #396649, patch by Andy Hume.
+
+2008-06-02  Dick Porter  <dick@ximian.com>
+
+       * Win32Exception.cs: Turn W32ErrorMessage into an icall so it can
+       use the FormatMessage API.  Fixes bug 321827.
+
+2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * 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.
+
+2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * TypeDescriptor.cs: GetAttributes must retrieve the attributes of 
+       the type, the base types and the interfaces the type implements.
+       [Fix part of bug #394310]
+
+2008-05-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * INotifyPropertyChanging.cs, PropertyChangingEventArgs.cs,
+         PropertyChangingEventHandler.cs : new types in 2.0 SP1.
+
+2008-05-19  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CharConverter.cs,
+       * DateTimeConverter.cs,
+       * GuidConverter.cs,
+       * TimeSpanConverter.cs: Avoid unboxing structs more than one time.
+       [Found using Gendarme]
+
+2008-05-05  James Fitzsimons <james.fitzsimons@gmail.com>
+
+       * TypeDescriptor.cs: GetProperties should not return write-only 
+       properties.
+
+2008-04-26  Jb Evain  <jbevain@novell.com>
+
+       * PropertyTabAttribute.cs, BindingList.cs: replace
+       usages of new Type [0] with Type.EmptyTypes.
+       Found with Gendarme.
+
+2008-04-16  Marek Habersack  <mhabersack@novell.com>
+
+       * ReferenceConverter.cs: fix ConvertFrom and ConvertTo when
+       converting from/to string - base must be called only if the
+       conversion target type is NOT string, otherwise the result of the
+       conversion will be the value type name.
+
+2008-04-13  Jb Evain  <jbevain@novell.com>
+
+       * TypeDescriptor.cs: internalize method AddEditorTable
+       for the 2.1 profile.
+       Merged from the Moonlight 2 branch.
+
 2008-04-07  Ivan N. Zlatev  <contact@i-nz.net>
 
        * ReflectionPropertyDescriptor.cs: ReadOnlyAttribute has a Default,