Author: atsushi
Date: 2007-05-31 13:01:50 -0400 (Thu, 31 May 2007)
New Revision: 78356
Added:
trunk/mcs/class/System/System.ComponentModel/ContainerFilterService.cs
trunk/mcs/class/System/System.ComponentModel/CustomTypeDescriptor.cs
trunk/mcs/class/System/System.ComponentModel/InstanceCreationEditor.cs
trunk/mcs/class/System/System.ComponentModel/InvalidAsynchronousStateException.cs
trunk/mcs/class/System/System.ComponentModel/MultilineStringConverter.cs
trunk/mcs/class/System/System.ComponentModel/NestedContainer.cs
trunk/mcs/class/System/System.ComponentModel/NullableConverter.cs
trunk/mcs/class/System/System.ComponentModel/TypeDescriptionProvider.cs
trunk/mcs/class/System/System.ComponentModel/TypeDescriptionProviderAttribute.cs
Modified:
trunk/mcs/class/System/ChangeLog
trunk/mcs/class/System/System.ComponentModel/ChangeLog
trunk/mcs/class/System/System.ComponentModel/DataObjectMethodAttribute.cs
trunk/mcs/class/System/System.ComponentModel/DataObjectMethodType.cs
trunk/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
trunk/mcs/class/System/System.dll.sources
Log:
2007-05-31 Atsushi Enomoto <[EMAIL PROTECTED]>
* ContainerFilterService.cs CustomTypeDescriptor.cs
InstanceCreationEditor.cs InvalidAsynchronousStateException.cs
MultilineStringConverter.cs NestedContainer.cs
NullableConverter.cs TypeDescriptionProvider.cs
TypeDescriptionProviderAttribute.cs :
2.0 stubs except for [Obsolete].
* TypeDescriptor.cs : added missing 2.0 members.
* System.dll.sources :
added couple of new 2.0 sys.ComponentModel types.
Modified: trunk/mcs/class/System/ChangeLog
===================================================================
--- trunk/mcs/class/System/ChangeLog 2007-05-31 16:33:21 UTC (rev 78355)
+++ trunk/mcs/class/System/ChangeLog 2007-05-31 17:01:50 UTC (rev 78356)
@@ -1,3 +1,8 @@
+2007-05-31 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * System.dll.sources :
+ added couple of new 2.0 sys.ComponentModel types.
+
2007-05-31 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* System.dll.sources: Added LookupBindingPropertiesAttribute.cs.
Modified: trunk/mcs/class/System/System.ComponentModel/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/ChangeLog 2007-05-31
16:33:21 UTC (rev 78355)
+++ trunk/mcs/class/System/System.ComponentModel/ChangeLog 2007-05-31
17:01:50 UTC (rev 78356)
@@ -1,5 +1,15 @@
2007-05-31 Atsushi Enomoto <[EMAIL PROTECTED]>
+ * ContainerFilterService.cs CustomTypeDescriptor.cs
+ InstanceCreationEditor.cs InvalidAsynchronousStateException.cs
+ MultilineStringConverter.cs NestedContainer.cs
+ NullableConverter.cs TypeDescriptionProvider.cs
+ TypeDescriptionProviderAttribute.cs :
+ 2.0 stubs except for [Obsolete].
+ * TypeDescriptor.cs : added missing 2.0 members.
+
+2007-05-31 Atsushi Enomoto <[EMAIL PROTECTED]>
+
* PropertyDescriptor.cs : oops, wrong fix.
2007-05-31 Atsushi Enomoto <[EMAIL PROTECTED]>
Added: trunk/mcs/class/System/System.ComponentModel/ContainerFilterService.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/ContainerFilterService.cs
2007-05-31 16:33:21 UTC (rev 78355)
+++ trunk/mcs/class/System/System.ComponentModel/ContainerFilterService.cs
2007-05-31 17:01:50 UTC (rev 78356)
@@ -0,0 +1,47 @@
+//
+// ContainerFilterService.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc. http://www.novell.com
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+
+namespace System.ComponentModel
+{
+ public abstract class ContainerFilterService
+ {
+ [MonoTODO]
+ public virtual ComponentCollection FilterComponents
(ComponentCollection components)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
+#endif
Added: trunk/mcs/class/System/System.ComponentModel/CustomTypeDescriptor.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/CustomTypeDescriptor.cs
2007-05-31 16:33:21 UTC (rev 78355)
+++ trunk/mcs/class/System/System.ComponentModel/CustomTypeDescriptor.cs
2007-05-31 17:01:50 UTC (rev 78356)
@@ -0,0 +1,123 @@
+//
+// CustomTypeDescriptor.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc. http://www.novell.com
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+
+namespace System.ComponentModel
+{
+ public abstract class CustomTypeDescriptor : ICustomTypeDescriptor
+ {
+ protected CustomTypeDescriptor ()
+ {
+ }
+
+ [MonoTODO]
+ protected CustomTypeDescriptor (ICustomTypeDescriptor other)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual AttributeCollection GetAttributes ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual string GetClassName ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual string GetComponentName ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual TypeConverter GetConverter ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual EventDescriptor GetDefaultEvent ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual PropertyDescriptor GetDefaultProperty ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual Object GetEditor (Type editorBaseType)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual EventDescriptorCollection GetEvents ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual EventDescriptorCollection GetEvents (Attribute
[] attributes)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual PropertyDescriptorCollection GetProperties ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual PropertyDescriptorCollection GetProperties
(Attribute [] attributes)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual Object GetPropertyOwner (PropertyDescriptor pd)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
+#endif
Property changes on:
trunk/mcs/class/System/System.ComponentModel/DataObjectMethodAttribute.cs
___________________________________________________________________
Name: svn:executable
- *
Property changes on:
trunk/mcs/class/System/System.ComponentModel/DataObjectMethodType.cs
___________________________________________________________________
Name: svn:executable
- *
Added: trunk/mcs/class/System/System.ComponentModel/InstanceCreationEditor.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/InstanceCreationEditor.cs
2007-05-31 16:33:21 UTC (rev 78355)
+++ trunk/mcs/class/System/System.ComponentModel/InstanceCreationEditor.cs
2007-05-31 17:01:50 UTC (rev 78356)
@@ -0,0 +1,48 @@
+//
+// InstanceCreationEditor.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc. http://www.novell.com
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+
+namespace System.ComponentModel
+{
+ public abstract class InstanceCreationEditor
+ {
+ [MonoTODO]
+ public virtual string Text {
+ get { throw new NotImplementedException (); }
+ }
+
+ public abstract object CreateInstance (ITypeDescriptorContext
context, Type type);
+ }
+}
+
+#endif
Added:
trunk/mcs/class/System/System.ComponentModel/InvalidAsynchronousStateException.cs
===================================================================
---
trunk/mcs/class/System/System.ComponentModel/InvalidAsynchronousStateException.cs
2007-05-31 16:33:21 UTC (rev 78355)
+++
trunk/mcs/class/System/System.ComponentModel/InvalidAsynchronousStateException.cs
2007-05-31 17:01:50 UTC (rev 78356)
@@ -0,0 +1,63 @@
+//
+// InvalidAsynchronousStateException.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc. http://www.novell.com
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.Runtime.Serialization;
+
+namespace System.ComponentModel
+{
+ [Serializable]
+ public class InvalidAsynchronousStateException : ArgumentException
+ {
+ public InvalidAsynchronousStateException ()
+ : this ("Invalid asynchrinous state is occured")
+ {
+ }
+
+ public InvalidAsynchronousStateException (string message)
+ : this (message, null)
+ {
+ }
+
+ public InvalidAsynchronousStateException (string message,
Exception innerException)
+ : base (message, innerException)
+ {
+ }
+
+ protected InvalidAsynchronousStateException (SerializationInfo
info, StreamingContext context)
+ : base (info, context)
+ {
+ }
+ }
+}
+
+#endif
Added: trunk/mcs/class/System/System.ComponentModel/MultilineStringConverter.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/MultilineStringConverter.cs
2007-05-31 16:33:21 UTC (rev 78355)
+++ trunk/mcs/class/System/System.ComponentModel/MultilineStringConverter.cs
2007-05-31 17:01:50 UTC (rev 78356)
@@ -0,0 +1,60 @@
+//
+// MultilineStringConverter.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc. http://www.novell.com
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.Globalization;
+
+namespace System.ComponentModel
+{
+ public class MultilineStringConverter : TypeConverter
+ {
+ [MonoTODO]
+ public override object ConvertTo (ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override PropertyDescriptorCollection GetProperties
(ITypeDescriptorContext context, object value, Attribute [] attributes)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override bool GetPropertiesSupported
(ITypeDescriptorContext context)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
+#endif
Added: trunk/mcs/class/System/System.ComponentModel/NestedContainer.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/NestedContainer.cs
2007-05-31 16:33:21 UTC (rev 78355)
+++ trunk/mcs/class/System/System.ComponentModel/NestedContainer.cs
2007-05-31 17:01:50 UTC (rev 78356)
@@ -0,0 +1,79 @@
+//
+// NestedContainer.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc. http://www.novell.com
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+
+namespace System.ComponentModel
+{
+ public class NestedContainer : Container, INestedContainer
+ {
+ IComponent owner;
+
+ [MonoTODO]
+ public NestedContainer (IComponent owner)
+ {
+ if (owner == null)
+ throw new ArgumentNullException ("component");
+ this.owner = owner;
+ }
+
+ [MonoTODO]
+ public IComponent Owner {
+ get { return owner; }
+ }
+
+ [MonoTODO]
+ protected virtual string OwnerName {
+ get { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ protected override ISite CreateSite (IComponent component,
string name)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected override void Dispose (bool disposing)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected override object GetService (Type serviceType)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
+#endif
Added: trunk/mcs/class/System/System.ComponentModel/NullableConverter.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/NullableConverter.cs
2007-05-31 16:33:21 UTC (rev 78355)
+++ trunk/mcs/class/System/System.ComponentModel/NullableConverter.cs
2007-05-31 17:01:50 UTC (rev 78356)
@@ -0,0 +1,136 @@
+//
+// NullableConverter.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc. http://www.novell.com
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.Collections;
+using System.Globalization;
+
+namespace System.ComponentModel
+{
+ public class NullableConverter : TypeConverter
+ {
+ [MonoTODO]
+ public NullableConverter (Type type)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override bool CanConvertFrom (ITypeDescriptorContext
context, Type sourceType)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override bool CanConvertTo (ITypeDescriptorContext
context, Type destinationType)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override object ConvertFrom (ITypeDescriptorContext
context, CultureInfo culture, object value)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override object ConvertTo (ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override object CreateInstance (ITypeDescriptorContext
context, IDictionary propertyValues)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override bool GetCreateInstanceSupported
(ITypeDescriptorContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override PropertyDescriptorCollection GetProperties
(ITypeDescriptorContext context, object value, Attribute [] attributes)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override bool GetPropertiesSupported
(ITypeDescriptorContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override TypeConverter.StandardValuesCollection
GetStandardValues (ITypeDescriptorContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override bool GetStandardValuesExclusive
(ITypeDescriptorContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override bool GetStandardValuesSupported
(ITypeDescriptorContext context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public override bool IsValid (ITypeDescriptorContext context,
object value)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public Type NullableType {
+ get { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ public Type UnderlyingType {
+ get { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ public TypeConverter UnderlyingTypeConverter {
+ get { throw new NotImplementedException (); }
+ }
+ }
+}
+
+#endif
Added: trunk/mcs/class/System/System.ComponentModel/TypeDescriptionProvider.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/TypeDescriptionProvider.cs
2007-05-31 16:33:21 UTC (rev 78355)
+++ trunk/mcs/class/System/System.ComponentModel/TypeDescriptionProvider.cs
2007-05-31 17:01:50 UTC (rev 78356)
@@ -0,0 +1,112 @@
+//
+// TypeDescriptionProvider.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc. http://www.novell.com
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.Collections;
+
+namespace System.ComponentModel
+{
+ public abstract class TypeDescriptionProvider
+ {
+ protected TypeDescriptionProvider ()
+ {
+ }
+
+ [MonoTODO]
+ protected TypeDescriptionProvider (TypeDescriptionProvider
other)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual Object CreateInstance (IServiceProvider
provider, Type objectType, Type [] argTypes, object [] args)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual IDictionary GetCache (object instance)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual ICustomTypeDescriptor GetExtendedTypeDescriptor
(object instance)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual string GetFullComponentName (object component)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public Type GetReflectionType (Type objectType)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public Type GetReflectionType (object instance)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual Type GetReflectionType (Type objectType, object
instance)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public ICustomTypeDescriptor GetTypeDescriptor (Type objectType)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public ICustomTypeDescriptor GetTypeDescriptor (object instance)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public virtual ICustomTypeDescriptor GetTypeDescriptor (Type
objectType, object instance)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
+#endif
Added:
trunk/mcs/class/System/System.ComponentModel/TypeDescriptionProviderAttribute.cs
===================================================================
---
trunk/mcs/class/System/System.ComponentModel/TypeDescriptionProviderAttribute.cs
2007-05-31 16:33:21 UTC (rev 78355)
+++
trunk/mcs/class/System/System.ComponentModel/TypeDescriptionProviderAttribute.cs
2007-05-31 17:01:50 UTC (rev 78356)
@@ -0,0 +1,64 @@
+//
+// TypeDescriptionProviderAttribute.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc. http://www.novell.com
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+
+namespace System.ComponentModel
+{
+ [AttributeUsage (AttributeTargets.Class)]
+ public sealed class TypeDescriptionProviderAttribute : Attribute
+ {
+ string type;
+
+ [MonoTODO]
+ public TypeDescriptionProviderAttribute (string typeName)
+ {
+ if (typeName == null)
+ throw new ArgumentNullException ("typeName");
+ type = typeName;
+ }
+
+ [MonoTODO]
+ public TypeDescriptionProviderAttribute (Type type)
+ {
+ if (type== null)
+ throw new ArgumentNullException ("type");
+ this.type = type.AssemblyQualifiedName;
+ }
+
+ public string TypeName {
+ get { return type; }
+ }
+ }
+}
+
+#endif
Modified: trunk/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
2007-05-31 16:33:21 UTC (rev 78355)
+++ trunk/mcs/class/System/System.ComponentModel/TypeDescriptor.cs
2007-05-31 17:01:50 UTC (rev 78356)
@@ -52,7 +52,41 @@
}
#if NET_2_0
+ [MonoNotSupported ("")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ public static Type ComObjectType {
+ get { throw new NotImplementedException (); }
+ }
+
[MonoNotSupported("")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ public static TypeDescriptionProvider AddAttributes (object instance,
params Attribute [] attributes)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoNotSupported("")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ public static TypeDescriptionProvider AddAttributes (Type type, params
Attribute [] attributes)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoNotSupported("")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ public static void AddProvider (TypeDescriptionProvider provider,
object instance)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoNotSupported("")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ public static void AddProvider (TypeDescriptionProvider provider, Type
type)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoNotSupported("")]
public static object CreateInstance (IServiceProvider provider, Type
objectType, Type [] argTypes, object [] args)
{
throw new NotImplementedException ();
@@ -60,6 +94,9 @@
#endif
[MonoTODO]
+#if NET_2_0
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+#endif
public static void AddEditorTable (Type editorBaseType, Hashtable table)
{
throw new NotImplementedException ();
@@ -84,7 +121,11 @@
public static EventDescriptor CreateEvent (Type componentType,
string name,
Type type,
+#if NET_2_0
+ params Attribute []
attributes)
+#else
Attribute [] attributes)
+#endif
{
return new ReflectionEventDescriptor (componentType, name,
type, attributes);
}
@@ -92,7 +133,11 @@
[ReflectionPermission (SecurityAction.LinkDemand, TypeInformation =
true, MemberAccess = true)]
public static EventDescriptor CreateEvent (Type componentType,
EventDescriptor
oldEventDescriptor,
+#if NET_2_0
+ params Attribute []
attributes)
+#else
Attribute [] attributes)
+#endif
{
return new ReflectionEventDescriptor (componentType,
oldEventDescriptor, attributes);
}
@@ -101,7 +146,11 @@
public static PropertyDescriptor CreateProperty (Type componentType,
string name,
Type type,
+#if NET_2_0
+ params Attribute []
attributes)
+#else
Attribute []
attributes)
+#endif
{
return new ReflectionPropertyDescriptor (componentType, name,
type, attributes);
}
@@ -109,7 +158,11 @@
[ReflectionPermission (SecurityAction.LinkDemand, TypeInformation =
true, MemberAccess = true)]
public static PropertyDescriptor CreateProperty (Type componentType,
PropertyDescriptor
oldPropertyDescriptor,
+#if NET_2_0
+ params Attribute []
attributes)
+#else
Attribute []
attributes)
+#endif
{
return new ReflectionPropertyDescriptor (componentType,
oldPropertyDescriptor, attributes);
}
@@ -127,6 +180,9 @@
return GetAttributes (component, false);
}
+#if NET_2_0
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+#endif
public static AttributeCollection GetAttributes (object component, bool
noCustomTypeDesc)
{
if (component == null)
@@ -148,6 +204,9 @@
return GetClassName (component, false);
}
+#if NET_2_0
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+#endif
public static string GetClassName (object component, bool
noCustomTypeDesc)
{
if (component == null)
@@ -170,6 +229,9 @@
return GetComponentName (component, false);
}
+#if NET_2_0
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+#endif
public static string GetComponentName (object component, bool
noCustomTypeDesc)
{
if (component == null)
@@ -208,6 +270,9 @@
return GetConverter (component, false);
}
+#if NET_2_0
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+#endif
public static TypeConverter GetConverter (object component, bool
noCustomTypeDesc)
{
if (component == null)
@@ -347,6 +412,9 @@
return GetDefaultEvent (component, false);
}
+#if NET_2_0
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+#endif
public static EventDescriptor GetDefaultEvent (object component, bool
noCustomTypeDesc)
{
if (!noCustomTypeDesc && (component is ICustomTypeDescriptor))
@@ -370,6 +438,9 @@
return GetDefaultProperty (component, false);
}
+#if NET_2_0
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+#endif
public static PropertyDescriptor GetDefaultProperty (object component,
bool noCustomTypeDesc)
{
if (!noCustomTypeDesc && (component is ICustomTypeDescriptor))
@@ -421,6 +492,9 @@
return GetEditor (component, editorBaseType, false);
}
+#if NET_2_0
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+#endif
public static object GetEditor (object component, Type editorBaseType,
bool noCustomTypeDesc)
{
if (component == null)
@@ -461,6 +535,9 @@
return GetEvents (component, attributes, false);
}
+#if NET_2_0
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+#endif
public static EventDescriptorCollection GetEvents (object component,
bool noCustomTypeDesc)
{
if (!noCustomTypeDesc && (component is ICustomTypeDescriptor))
@@ -479,6 +556,9 @@
return GetTypeInfo (componentType).GetEvents (attributes);
}
+#if NET_2_0
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+#endif
public static EventDescriptorCollection GetEvents (object component,
Attribute [] attributes, bool noCustomTypeDesc)
{
if (!noCustomTypeDesc && (component is ICustomTypeDescriptor))
@@ -523,6 +603,9 @@
}
}
+#if NET_2_0
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+#endif
public static PropertyDescriptorCollection GetProperties (object
component, bool noCustomTypeDesc)
{
if (component == null)
@@ -546,41 +629,74 @@
#if NET_2_0
[MonoNotSupported ("")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ public static TypeDescriptionProvider GetProvider (object instance)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoNotSupported ("")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ public static TypeDescriptionProvider GetProvider (Type type)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoNotSupported ("")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
public static Type GetReflectionType (object instance)
{
throw new NotImplementedException ();
}
[MonoNotSupported ("")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
public static Type GetReflectionType (Type type)
{
throw new NotImplementedException ();
}
[MonoNotSupported("Associations not supported")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
public static void CreateAssociation (object primary, object secondary)
{
throw new NotImplementedException ();
}
[MonoNotSupported ("Associations not supported")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
public static object GetAssociation (Type type, object primary)
{
throw new NotImplementedException ();
}
[MonoNotSupported ("Associations not supported")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
public static void RemoveAssociation (object primary, object secondary)
{
throw new NotImplementedException ();
}
[MonoNotSupported ("Associations not supported")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
public static void RemoveAssociations (object primary)
{
throw new NotImplementedException ();
}
+ [MonoNotSupported ("")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ public static void RemoveProvider (TypeDescriptionProvider provider,
object instance)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoNotSupported ("")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ public static void RemoveProvider (TypeDescriptionProvider provider,
Type type)
+ {
+ throw new NotImplementedException ();
+ }
#endif
public static void SortDescriptorArray (IList infos)
Modified: trunk/mcs/class/System/System.dll.sources
===================================================================
--- trunk/mcs/class/System/System.dll.sources 2007-05-31 16:33:21 UTC (rev
78355)
+++ trunk/mcs/class/System/System.dll.sources 2007-05-31 17:01:50 UTC (rev
78356)
@@ -189,7 +189,9 @@
System.ComponentModel/ComponentEditor.cs
System.ComponentModel/ComponentResourceManager.cs
System.ComponentModel/Container.cs
+System.ComponentModel/ContainerFilterService.cs
System.ComponentModel/CultureInfoConverter.cs
+System.ComponentModel/CustomTypeDescriptor.cs
System.ComponentModel/DataObjectAttribute.cs
System.ComponentModel/DataObjectFieldAttribute.cs
System.ComponentModel/DataObjectMethodAttribute.cs
@@ -312,6 +314,8 @@
System.ComponentModel/InitializationEventAttribute.cs
System.ComponentModel/INotifyPropertyChanged.cs
System.ComponentModel/InstallerTypeAttribute.cs
+System.ComponentModel/InstanceCreationEditor.cs
+System.ComponentModel/InvalidAsynchronousStateException.cs
System.ComponentModel/Int16Converter.cs
System.ComponentModel/Int32Converter.cs
System.ComponentModel/Int64Converter.cs
@@ -346,7 +350,10 @@
System.ComponentModel/MaskedTextResultHint.cs
System.ComponentModel/MemberDescriptor.cs
System.ComponentModel/MergablePropertyAttribute.cs
+System.ComponentModel/MultilineStringConverter.cs
+System.ComponentModel/NestedContainer.cs
System.ComponentModel/NotifyParentPropertyAttribute.cs
+System.ComponentModel/NullableConverter.cs
System.ComponentModel/ParenthesizePropertyNameAttribute.cs
System.ComponentModel/PasswordPropertyTextAttribute.cs
System.ComponentModel/PropertyChangedEventArgs.cs
@@ -379,6 +386,8 @@
System.ComponentModel/ToolboxItemFilterType.cs
System.ComponentModel/TypeConverterAttribute.cs
System.ComponentModel/TypeConverter.cs
+System.ComponentModel/TypeDescriptionProvider.cs
+System.ComponentModel/TypeDescriptionProviderAttribute.cs
System.ComponentModel/TypeDescriptor.cs
System.ComponentModel/TypeListConverter.cs
System.ComponentModel/UInt16Converter.cs
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches