Quellcode durchsuchen

2004-03-12 Andreas Nahr <[email protected]>

	* Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
	* DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
	* ColumnTypeConverter.cs: Added stub
	* DefaultValueTypeConverter: Added stub
	* ConstraintConverter.cs: Added stub

svn path=/trunk/mcs/; revision=23962
Andreas N vor 22 Jahren
Ursprung
Commit
6dbfc65b49

+ 8 - 0
mcs/class/System.Data/System.Data/ChangeLog

@@ -1,3 +1,11 @@
+2004-03-12  Andreas Nahr <[email protected]>
+
+	* Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
+	* DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
+	* ColumnTypeConverter.cs: Added stub
+	* DefaultValueTypeConverter: Added stub
+	* ConstraintConverter.cs: Added stub
+
 2004-03-04 Eran Domb <[email protected]>
 
 	* XmlDataLoader.cs : Xml reading reviewed. Added support for additional xml formats as described

+ 36 - 0
mcs/class/System.Data/System.Data/ColumnTypeConverter.cs

@@ -0,0 +1,36 @@
+//
+// System.Data.ColumnTypeConverter.cs
+//
+// Author:
+//   Andreas Nahr ([email protected])
+//
+// (C) 2004 Andreas Nahr
+//
+
+using System;
+using System.Globalization;
+using System.ComponentModel;
+
+namespace System.Data
+{
+	internal sealed class ColumnTypeConverter : ExpandableObjectConverter
+	{
+		[MonoTODO]
+		public ColumnTypeConverter ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
+		{
+			throw new NotImplementedException ();
+		}
+	}
+}

+ 1 - 1
mcs/class/System.Data/System.Data/Constraint.cs

@@ -23,7 +23,7 @@ namespace System.Data {
 
 	[DefaultProperty ("ConstraintName")]	
 	[Serializable]
-	[TypeConverterAttribute ("System.Data.ConstraintConverter, "+ Consts.AssemblySystem_Data)]
+	[TypeConverterAttribute (typeof (ConstraintConverter))]
 	public abstract class Constraint 
 	{
 		internal event DelegateConstraintNameChange BeforeConstraintNameChange;

+ 36 - 0
mcs/class/System.Data/System.Data/ConstraintConverter.cs

@@ -0,0 +1,36 @@
+//
+// System.Data.ConstraintConverter.cs
+//
+// Author:
+//   Andreas Nahr ([email protected])
+//
+// (C) 2004 Andreas Nahr
+//
+
+using System;
+using System.Globalization;
+using System.ComponentModel;
+
+namespace System.Data
+{
+	internal sealed class ConstraintConverter : ExpandableObjectConverter
+	{
+		[MonoTODO]
+		public ConstraintConverter ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
+		{
+			throw new NotImplementedException ();
+		}
+	}
+}

+ 3 - 3
mcs/class/System.Data/System.Data/DataColumn.cs

@@ -33,7 +33,7 @@ namespace System.Data {
 	[DefaultMember ("Item")]
 	[DefaultProperty ("ColumnName")]
 	[DesignTimeVisible (false)]
-	[TypeConverterAttribute ("System.Data.ComponentConverter, "+ Consts.AssemblySystem)]
+	[TypeConverterAttribute (typeof (ComponentConverter))]
 	public class DataColumn : MarshalByValueComponent
 	{		
 		#region Events
@@ -295,7 +295,7 @@ namespace System.Data {
 		[DataSysDescription ("Indicates the type of data stored in this column.")]
 		[DefaultValue (typeof (string))]
 		[RefreshProperties (RefreshProperties.All)]
-		[TypeConverterAttribute ("System.Data.ColumnTypeConverter, "+ Consts.AssemblySystem_Data)] 
+		[TypeConverterAttribute (typeof (ColumnTypeConverter))] 
 		public Type DataType
 		{
 			get {
@@ -328,7 +328,7 @@ namespace System.Data {
 		/// <exception cref="System.ArgumentException"></exception>
 		[DataCategory ("Data")]
 		[DataSysDescription ("Indicates the default column value used when adding new rows to the table.")]
-		[TypeConverterAttribute ("System.Data.DefaultValueTypeConverter, "+ Consts.AssemblySystem_Data)]
+		[TypeConverterAttribute (typeof (System.Data.DefaultValueTypeConverter))]
 		public object DefaultValue
 		{
 			get {

+ 36 - 0
mcs/class/System.Data/System.Data/DefaultValueTypeConverter.cs

@@ -0,0 +1,36 @@
+//
+// System.Data.DefaultValueTypeConverter.cs
+//
+// Author:
+//   Andreas Nahr ([email protected])
+//
+// (C) 2004 Andreas Nahr
+//
+
+using System;
+using System.Globalization;
+using System.ComponentModel;
+
+namespace System.Data
+{
+	internal sealed class DefaultValueTypeConverter : ExpandableObjectConverter
+	{
+		[MonoTODO]
+		public DefaultValueTypeConverter ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
+		{
+			throw new NotImplementedException ();
+		}
+	}
+}