Commit Graph
436 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Alexis Christoforides aeab5b5902 [System.ComponentModel] BindingList.ListChanged now attempts to provide a PropertyDescriptor when possible.
BindingList subscribes to PropertyChanged events of eligible contained objects. Iff the PropertyName provided is valid,
the list event's ListChangedEventArgs will also contain a PropertyDescriptor.

This is to match MS behavior.
2014-06-18 22:11:43 -04:00
scottmcarthur 6150625424 Check for null item in BindingList<T>.InsertItem
Prevents `NullReferenceException` when inserting `null` object into `BindingList<T>` where `T` implements `INotifyPropertyChanged`
2013-12-21 17:28:35 +00:00
Alex Willmy c749da6d02 System.CompomentModel.Component.cs: Make disposedEvent key static
There is no need for an instance of Component to create its own lookup key for the Disposed event. Use a shared static key instead.
2013-11-09 17:49:12 +01:00
Martin Baulig 804acc091c Fix System.ComponentModel.DataErrorsChangedEventArgs API. 2013-03-12 18:07:53 -04:00
Marek Safar f0ad346fb6 Mobile tests update 2013-02-22 21:41:19 +01:00
Steven Robbins 46420e6f50 Fixed formatting 2013-02-10 11:59:56 +00:00
Steven Robbins f05d1c1ab9 Fixed issue with TypeConverter.IsValid always returning true
Now returns true if null and true if the type passed in can be
converted to, and the conversion itself didn't throw an exception.

If the type cannot be converted to, or the conversion threw, then
it returns false.
2013-02-12 14:54:38 +00:00
Rodrigo Kumpera 438e0d8b92 Remove TypeConverter_2_1 that was only used by moonlight. 2013-02-11 13:01:11 -05:00
Rodrigo Kumpera 5007c14d62 Kill the MOONLIGHT define in System. 2013-02-11 13:01:11 -05:00
Marek Safar 5fad3b0dce Remove some redundant initializations 2012-10-05 16:37:05 +01:00
Kevin Daub 6df3af8b90 [API] Added missing .Net 4.5 interface and dependent class 2012-09-09 12:15:14 -04:00
Kevin Daub 6fc12d7e20 [API] Added missing .Net 4.5 interface and dependent class 2012-09-09 03:53:06 -04:00
Marek Safar e9a5306d5d Implement TypeConverter.ConvertTo cultureInfo support. Fixes #6322 2012-08-09 10:03:36 +01:00
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Veerapuram Varadhan f2870fbbf1 [mono]bugfix:663287 - Validate the type of value against underlyingtype
instead of nullableType.
2011-05-05 03:29:53 +05:30
Gonzalo Paniagua Javier e94ee832da Hook ProopertyNotified event on data sources
Patch by Rasmus Toftahl Olesen that fixes bug #585577.
2011-03-17 02:22:23 -04:00
Miguel de Icaza 48292550e8 More NET_2_0 define removal 2011-03-16 21:46:02 -04:00
Sebastien Pouliot 4eedff1487 Fix parameter name mismatches between Moonlight and Silverlight 2011-03-10 14:33:31 -05:00
Carlos Alberto Cortez 5b9f6d2348 Implement AddProviderTransparent and RemoveProviderTransparent for TypeDescriptor.
* TypeDescriptor.cs: Implement AddProviderTransparent and
	RemoveProviderTransparent - we only call to the already existing
	AddProvider and RemoveProvider methods respectively.
2010-09-21 03:01:50 +02:00
Carlos Alberto Cortez 682e52541d In 4.0 the constructors of TypeConverter.SimplePropertyDescriptor are protected.
* TypeConverter.cs: The constructors of SimplePropertyDescriptor
	are protected in 4.0.
2010-09-14 10:14:34 +02:00
Carlos Alberto Cortez 88d9cb44a1 Implement TypeDescriptor.InterfaceType.
* TypeDescriptor.cs: Implement 4.0 InterfaceType property, which
	seems to be a simple dummy and empty class in .Net, internally
	used to represent all interfaces.
2010-09-14 10:14:34 +02:00
Carlos Alberto Cortez 9c24d407cf Remove the NET_2_0 directives from TypeDescriptor.cs
* TypeDescriptor.cs: Remove the NET_2_0 directives, as we don't
	need them anymore.
2010-09-14 10:14:33 +02:00
Carlos Alberto Cortez 9b850f2e49 Implement IsSupportedType, GetExtenderProviders and GetRuntimeType for TypeDescriptionProvider.
* TypeDescriptionProvider.cs: Implement 4.0 IsSupportedType,
	GetExtenderProviders and GetRuntimeType methods.
2010-09-14 10:14:33 +02:00
Carlos Alberto Cortez b45d1da49d Remove the NET_2_0 directive from TypeDescriptionProvider.cs
* TypeDescriptionProvider.cs: Remove the NET_2_0 directive.
2010-09-14 10:14:32 +02:00
Carlos Alberto Cortez c7b2a29c8b Use the DateTimeOffset .ctor that .net uses when converting it to InstanceDescriptor.
* DateTimeOffsetConverter.cs: Use the same DateTimeOffset .ctor
	that .net uses when converting to a InstanceDescriptor.
2010-09-10 04:55:29 +02:00
Carlos Alberto Cortez f14136e50f Implement System.ComponentModel.DateTimeOffsetConverter.
* DateTimeOffsetConverter.cs: Implement new 4.0 class.
2010-09-07 04:48:39 +02:00
Carlos Alberto Cortez 59b6afce3c Implement CultureInfoConverter.GetCultureName.
* CultureInfoConverter.cs: Implement GetCultureName.
2010-09-05 05:53:24 +02:00
Carlos Alberto Cortez 9c69bf0aa1 Remove the NET_2_0 directives from CultureInfoConverter.cs
* CultureInfoConverter.cs: Remove the NET_2_0 directive.
2010-09-05 05:53:23 +02:00
Carlos Alberto Cortez a600dc6c0a Add 4.0 Attributes property and protected ctor to AttributeCollection.
* AttributeCollection.cs: Add 4.0 Attributes property as well
	as a new parameterless ctor.
2010-09-05 05:53:23 +02:00
Carlos Alberto Cortez 3b072eb567 Remove the NET_2_0 directives from AttributeCollection.cs.
* AttributeCollection.cs: Remove the NET_2_0 directives, as well
	as the else case for it (we are always NET_2_0 now).
2010-09-05 05:53:23 +02:00
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Marek Habersack 629cd06c70 2010-07-19 Marek Habersack <[email protected]>
* MultilineStringConverter.cs: implemented

svn path=/trunk/mcs/; revision=160566
2010-07-19 13:05:03 +00:00
Sebastien Pouliot 7fdcbd4b3c 2010-06-29 Sebastien Pouliot <[email protected]>
* ComplexBindingPropertiesAttribute.cs:
	* DefaultBindingPropertyAttribute.cs:
	* DefaultEventAttribute.cs:
	* DefaultPropertyAttribute.cs:
		Fix GetHashCode so that values are equals if Equals 
		return true
	* DesignTimeVisibleAttribute.cs: Fix default value for Visible.


svn path=/trunk/mcs/; revision=159667
2010-06-29 15:05:25 +00:00
Alan McGovern b107c00712 2010-06-25 Alan McGovern <[email protected]>
* TypeConverter_2_1.cs: Implement ConvertToString as per docs and
        moonlight tests.


svn path=/trunk/mcs/; revision=159592
2010-06-28 09:25:53 +00:00
Sebastien Pouliot de2d4a2ee4 2010-05-21 Sebastien Pouliot <[email protected]>
* AsyncOperation.cs: Add checks for null delegates
	* BackgroundWorker.cs: Ensure ProgressChanged can be called before
	starting the work but not after its complete


svn path=/trunk/mcs/; revision=157698
2010-05-21 13:03:53 +00:00
Sebastien Pouliot 5a1def265a 2010-05-20 Sebastien Pouliot <[email protected]>
* DefaultValueAttribute.cs: Two instances where DefaultValue == 
	null are equal so they *must* return the same hash code


svn path=/trunk/mcs/; revision=157646
2010-05-20 18:54:55 +00:00
Miguel de Icaza d1bd8ade5f 2010-03-20 Miguel de Icaza <[email protected]>
* TypeDescriptor.cs: Remove warning.

svn path=/trunk/mcs/; revision=153947
2010-03-20 22:54:15 +00:00
Miguel de Icaza 11ca00c93b 2010-03-19 Miguel de Icaza <[email protected]>
* Eliminate warnings in a bunch of places.

svn path=/trunk/mcs/; revision=153923
2010-03-19 21:46:30 +00:00
Jb Evain ba61ae505e use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153655
2010-03-16 12:07:46 +00:00
Carlos Alberto Cortez 24eb22e276 2010-02-05 Carlos Alberto Cortez <[email protected]>
* 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.


svn path=/trunk/mcs/; revision=150926
2010-02-05 13:26:42 +00:00
Atsushi Eno 41edb8afe0 2010-01-25 Atsushi Enomoto <[email protected]>
some number ConvertTo() compatibility fixes (that are reported as
!CanConvertTo()), patch by Alexandre Gomes.

svn path=/trunk/mcs/; revision=150100
2010-01-25 03:38:42 +00:00
Marek Habersack 93a5d53b63 2009-12-08 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: GetConverterForMember looks up
	member type converters using type description providers in
	addition to custom attributes.
	Result of GenerateInstance isn't cast to the target type if the
	type isn't public.

2009-12-08  Marek Habersack  <[email protected]>

	* 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-12-08  Marek Habersack  <[email protected]>

	* Type.cs: added overloads for the == and != operators (4.0).

svn path=/trunk/mcs/; revision=147889
2009-12-08 22:33:32 +00:00
Sebastien Pouliot afef60e6d3 2009-11-30 Sebastien Pouliot <[email protected]>
* TypeConverterAttribute.cs: Add missing [ComVisible] for SL2/3 builds


svn path=/trunk/mcs/; revision=147154
2009-12-01 01:21:04 +00:00
Jonathan Pryor 0dd3c5f987 * Makefile: Add Mono.Data.Tds, System.Transactions, System.Data, and
Mono.Data.Sqlite to the MonoTouch build.
	* System/System.ComponentModel/TypeConverter_2_1.cs: Skip this type in
		the MonoTouch profile; MonoTouch will be using the 2.0 version of 
		TypeConverter.
	* System/System.ComponentModel/ComponentCollection.cs, 
		System/System.ComponentModel/PropertyDescriptor.cs: MonoTouch uses the
		.NET 2.0 versions of these types.
	* System/monotouch_System.dll.sources: Add lots of additional .NET 2.0
		functionality to the MonoTouch profile.
	* System.Transactions/Makefile (VALID_PROFILE): Add monotouch.
	* System.Data/System.Data.Common/DbConnection.cs: Throw 
		NotImplementedException for DbConnection.DbProviderFactory, as 
		DbProviderFactories isn't included in the MonoTouch profile.
	* System.Data/System.Data.SqlClient/SqlConnection.cs: Remove 
		EnterpriseServices dependency from the MonoTouch profile.
	* System.Data/monotouch_System.Data.dll.sources: Added.
	* System.Data/System.Data/XmlSchemaDataImporter.cs: Remove 
		DbProviderFactories dependency in the MonoTouch profile.

svn path=/trunk/mcs/; revision=144150
2009-10-14 20:55:43 +00:00
Alan McGovern 09fa1d1e8c 2009-09-29 Alan McGovern <[email protected]>
* 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.


svn path=/trunk/mcs/; revision=142872
2009-09-29 14:53:46 +00:00
Ivan Zlatev eac09e707f 2009-09-24 Ivan Zlatev <[email protected]>
* EnumConverter.cs: Fix conversion of 0 flag values.
	* EnumConverterTests.cs: Add a test to verify behaviour when converting
	 a 0 flag value.
	[Fixes bug #541402]

svn path=/trunk/mcs/; revision=142534
2009-09-23 23:56:06 +00:00
Jb Evain 00d03b988f 2009-07-22 Jb Evain <[email protected]>
* ExpandableObjectConverter.cs: no method to override for a NET_2_1 profile.


svn path=/trunk/mcs/; revision=138408
2009-07-22 14:20:27 +00:00
Gert Driesen 3b2ca87f4f * Container.cs: Replaced for loop with for loop.
[Fixes bug #522474]
* ContainerTest.cs: Added test for bug #522474.

svn path=/trunk/mcs/; revision=138328
2009-07-21 19:12:18 +00:00
Gert Driesen 41cb9e9a05 * 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.

svn path=/trunk/mcs/; revision=138176
2009-07-18 12:14:42 +00:00