Commit Graph
21 Commits
Author SHA1 Message Date
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
Marek Habersack d9f9fea847 2009-06-23 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added InternalsVisibleTo for
	System.ComponentModel.DataAnnotations (needs
	ReflectionPropertyDescriptor)

2009-06-23  Marek Habersack  <[email protected]>

	* MetaTable.cs: constructor now takes ContextConfiguration instead
	of a boolean and uses the config to determine value of the
	ScaffoldAllTables property. Also, if context config is present,
	makes sure to register the associated type description provider
	(if any) with TypeDescriptor.

	* MetaModel.cs: no longer uses local cache for description
	providers. Uses TypeDescriptor.{Add,Get}Provider now.

	* MetaColumn.cs: fixed Scaffold to match tests - IsGenerated and
	IsCustomProperty take precedence over Table.ScaffoldAllTables.
	GetDataFieldAttribute doesn't use AttributeCollection indexer, as
	the latter would create a default instance of the requested
	attribute, which is not what we want here.

2009-06-23  Marek Habersack  <[email protected]>

	* ValidationAttribute.cs: error message must not ever be empty.

	* UIHintAttribute.cs: do not throw NIEX from the constructor.

	* DataTypeAttribute.cs: implemented correct DisplayFormat
	intialization for DataType.Time.

	* AssociatedMetadataTypeTypeDescriptor.cs: implemented retrieving
	attributes of the associated metadata type, as well as merging of
	attribute collections between metadata and main type properties.

	* AssociatedMetadataTypePropertyDescriptor.cs: added. Helper class
	which merges attributes from the metadata type (if any) with those
	associated with property from the "main" type.

2009-06-23  Marek Habersack  <[email protected]>

	* System.ComponentModel.DataAnnotations.dll.sources: added
	System.ComponentModel.DataAnnotations/AssociatedMetadataTypePropertyDescriptor.cs

2009-06-23  Marek Habersack  <[email protected]>

	* TypeDescriptor.cs: do not wrap DefaultTypeDescriptionProvider.
	Implemented GetAttributes and GetProperties in
	DefaultTypeDescriptor.

	* AttributeCollection.cs: make sure that attrList is never null.

svn path=/trunk/mcs/; revision=136732
2009-06-23 18:38:38 +00:00
Marek Habersack 1821e106c7 2009-06-22 Marek Habersack <[email protected]>
* 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-06-22  Marek Habersack  <[email protected]>

	* TypeDescriptorTests.cs: added tests for 2.0+ APIs which deal
	with adding/removing/getting type description providers.

svn path=/trunk/mcs/; revision=136634
2009-06-22 18:24:19 +00:00
Marek Habersack f876f962ec 2009-02-19 Marek Habersack <[email protected]>
* 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-02-19  Marek Habersack  <[email protected]>

	* TypeDescriptorTests.cs: added a test for
	TypeDescriptor.GetConverter (null) case.

svn path=/trunk/mcs/; revision=127343
2009-02-18 23:08:26 +00:00
Atsushi Eno 6d007bebd8 2007-10-29 Atsushi Enomoto <[email protected]>
* AttributeCollection.cs : implemented FromExisting().
	* Container.cs : implemented ValidateName() support.
	* ContainerFilterService.cs : FilterComponents() does nothing.
	* InstanceCreationEditor.cs : implemented get_Text().

	* ContainerTest.cs : added test for ValidateName().


svn path=/trunk/mcs/; revision=88388
2007-10-29 15:30:55 +00:00
Atsushi Eno 6256817e8b 2007-05-31 Atsushi Enomoto <[email protected]>
* AsyncOperationManager.cs AttributeCollection.cs
	  BackgroundWorker.cs BindingList.cs CategoryAttribute.cs
	  Component.cs DataObjectFieldAttribute.cs DefaultValueAttribute.cs
	  DescriptionAttribute.cs EventDescriptorCollection.cs
	  IComNativeDescriptorHandler.cs IListSource.cs
	  ListSortDescriptionCollection.cs MemberDescriptor.cs
	  PropertyDescriptor.cs SyntaxCheck.cs ToolboxItemFilterAttribute.cs:
	  2.0 profile updates.


svn path=/trunk/mcs/; revision=78306
2007-05-31 09:42:25 +00:00
Adar Wesley fa26c82574 2007-05-15 Adar Wesley <[email protected]>
* AttributeCollection.cs: added missing method FromExisting.

        * Container.cs: added missing method ValidateName

        * DefaultValueAttribute.cs: added missing method SetValue.

        * EventHandlerList.cs: added missing method AddHandlers.

        * MemberDescriptor.cs: added missing method GetInvocationTarget.

        * PropertyDescriptor.cs: added missing method GetValueChangedHandler.

        * TypeDescriptor.cs: added missing methods CreateInstance, GetFullComponentName,
        GetClassName, GetReflectionType, CreateAssociation, GetAssociation,
        RemoveAssociation, RemoveAssociations.

        * MenuCommand.cs: added missing method overload Invoke

        * ContextStack.cs: added missing method Append.

        * Trace.cs: added missing method Refresh.


svn path=/trunk/mcs/; revision=77397
2007-05-15 11:57:31 +00:00
Gert Driesen f1c67c6a48 * TypeConverter.cs: Added explicit interface implementation for
ICollection.CopyTo and IEnumerable.GetEnumerator. Fixes corcompare
warnings.
* Component.cs: Remove TypeConverter attribute. Fixes corcompare
warning.
* AttributeCollection.cs: Added explicit interface implemenation for
IEnumerable.GetEnumerator, IList.RemoveAt and ICollection.Count.
Fixes corcompare warnings.
* PropertyDescriptorCollection.cs: Added explicit interface
implemenation for ICollection.Count. Fixes corcompare warning.

svn path=/trunk/mcs/; revision=61323
2006-05-31 13:20:33 +00:00
Lluis Sanchez 01fbadca43 2005-04-22 LLuis Sanchez Gual <[email protected]>
* AttributeCollection.cs: When checking if the list contains an
	attribute, always return true if that attribute is the default
	attribute for that kind of attributes.


svn path=/trunk/mcs/; revision=43438
2005-04-22 11:43:19 +00:00
Gonzalo Paniagua Javier fcbc77cd65 2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* AttributeCollection.cs: support attributes inherited from the one
	we want. Fixes bug #67088. Thanks to Sander Rijken.

svn path=/trunk/mcs/; revision=34578
2004-10-01 02:51:30 +00:00
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +00:00
Lluis Sanchez a0ea05369d * AttributeCollection.cs: Added new internal constructor.
* DesignerAttribute.cs: Fixed property TypeId.
	* EventDescriptorCollection.cs: Added internal constructor. Added new
	  method Filter that removes events that do not have the specified
	  attributes.
	* MemberDescriptor.cs: Minor fixes.
	* PropertyDescriptor.cs: Implemented some missing methods.
	* PropertyDescriptorCollection.cs: Added internal constructor. Implemented
	  Sort methods.
	* ReferenceConverter.cs: Removed some TODOs.
	* SyntaxCheck.cs: Implemented CheckMachineName and CheckPath.
	* TypeDescriptor.cs: Implemented most of missing methods.

svn path=/trunk/mcs/; revision=25473
2004-04-14 14:44:09 +00:00
Lluis Sanchez 2a724d4747 * AttributeCollection.cs: Don't try to create a default attribute if the
attribute type does not have a default constructor. Fix by Jon Wagner.
	This fixes #53898.

svn path=/trunk/mcs/; revision=25038
2004-04-05 14:14:11 +00:00
Andreas N 94ef21574a 2003-07-02 Andreas Nahr <[email protected]>
* AttributeCollection.cs: Fixed public members
	* BaseNumberConverter.cs: Changed InnerType to internal to match public assembly signature
	* BrowsableAttribute.cs: Removed wrong constructor, Restyle according to guidelines
	* CategoryAttribute.cs: Changed public fields to properties
	* EnumConverter.cs: Added and implemented missing properties, improved implementation
	* EventDescriptorCollection.cs: Fixed wrong signatures, added implementation, fixed potential bug
	* PropertyDescriptorCollection.cs: Fixed public members
	* ReferenceConverter.cs: Implementation added
	* SyntaxCheck.cs: Improved string checks, added MonoTODO descriptions
	* TypeDescriptor.cs: Implementations added

svn path=/trunk/mcs/; revision=15875
2003-07-02 18:26:12 +00:00
Andreas N 93fa12d0d5 2003-07-02 Andreas Nahr <[email protected]>
* ISite.cs: Fixed attributes, fixed header
	* ITypeDescriptorContext.cs: Fixed attributes, formatting corrections
	* WarningException.cs: Fixed attributes, formatting corrections
	* AttributeCollection.cs: Fixed attributes
	* DesignerSerializationVisibility.cs: Fixed attributes
	* TypeConverter.cs: Fixed attributes

	* MarshalByValueComponent.cs:
	* IComponent.cs: Fixed attributes, supports .Net 1.0 and 1.1

	* DescriptionAttribute.cs:
	* DesignerCategoryAttribute.cs:
	* DoubleConverter.cs:
	* EditorBrowsableAttribute.cs:
	* EventDescriptorCollection.cs:
	* PropertyChangedEventHandler.cs:
	* RefreshEventArgs.cs:
	* StringConverter.cs:
	* DefaultValueAttribute.cs: Reformatted following style guidelines

	* License.cs: Removed unused MonoTODOs
	* LicenseContext.cs: Implemented
	* LicenseException.cs: Implemented
	* LicenseProvider.cs: Removed unused MonoTODOs and unneccesary Finalizer
	* LicenseUsageMode.cs: Fixed enum
	* RefreshProperties.cs: Fixed enum
	* LicFileLicenseProvider.cs: Implementation added
	* ExtenderProvidedPropertyAttribute.cs: Implementation added, formatting corrections
	* ExpandableObjectConverter.cs: Implemented
	* ComponentConverter.cs: Implemented

svn path=/trunk/mcs/; revision=15865
2003-07-02 14:51:39 +00:00
Gonzalo Paniagua Javier 0d04c16030 2002-07-12 Gonzalo Paniagua Javier <[email protected]>
* AttributeCollection.cs: fixlet.

svn path=/trunk/mcs/; revision=5750
2002-07-13 02:13:16 +00:00
Gonzalo Paniagua Javier f9426746f8 2002-07-06 Gonzalo Paniagua Javier <[email protected]>
* AttributeCollection.cs: finished implementation.
	* TypeDescriptor.cs: implemented GetAttributes (object).

svn path=/trunk/mcs/; revision=5639
2002-07-07 01:36:46 +00:00
Gonzalo Paniagua Javier 99751f953a 2002-07-06 Gonzalo Paniagua Javier <[email protected]>
* AttributeCollection.cs: initialize member variables.

	* RefreshEventArgs.cs: implemented.
	* RefreshEventHandler.cs: New file.

	* TypeDescriptor.cs: fully stubbed out the remaining method.

svn path=/trunk/mcs/; revision=5633
2002-07-07 00:33:39 +00:00
Gonzalo Paniagua Javier 64b78bcb89 2002-05-05 Gonzalo Paniagua Javier <[email protected]>
* System.build: excluded EventDescriptor.cs,
	EventDescriptorCollection.cs and ICustomTypeDescriptor.cs.

	* System.ComponentModel/AttributeCollection.cs: added a cast to make it
	compile

svn path=/trunk/mcs/; revision=4283
2002-05-04 21:41:25 +00:00
Rodrigo Moya 5fcd11f1df 2002-05-03 Rodrigo Moya <[email protected]>
* AttributeCollection.cs:
	* EventDescriptor.cs:
	* EventDescriptorCollection.cs:
	* ICustomTypeDescriptor.cs: new files.

svn path=/trunk/mcs/; revision=4282
2002-05-04 20:56:53 +00:00