* 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
* 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
* 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
* 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
* AttributeCollection.cs: support attributes inherited from the one
we want. Fixes bug #67088. Thanks to Sander Rijken.
svn path=/trunk/mcs/; revision=34578
* 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
* 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