Add some interfaces
authorMiguel de Icaza <miguel@gnome.org>
Fri, 22 Jun 2001 20:53:16 +0000 (20:53 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Fri, 22 Jun 2001 20:53:16 +0000 (20:53 -0000)
svn path=/trunk/mcs/; revision=26

mcs/class/corlib/System/ICloneable.cs [new file with mode: 0644]
mcs/class/corlib/System/IComparable.cs [new file with mode: 0644]
mcs/class/corlib/System/IConvertible.cs [new file with mode: 0644]
mcs/class/corlib/System/ICustomFormatter.cs [new file with mode: 0644]
mcs/class/corlib/System/IDisposable.cs [new file with mode: 0644]
mcs/class/corlib/System/IFormatProvider.cs [new file with mode: 0644]
mcs/class/corlib/System/IFormattable.cs [new file with mode: 0644]

diff --git a/mcs/class/corlib/System/ICloneable.cs b/mcs/class/corlib/System/ICloneable.cs
new file mode 100644 (file)
index 0000000..41e372d
--- /dev/null
@@ -0,0 +1,15 @@
+//
+// System.ICloneable.cs
+//
+// Author:
+//   Miguel de Icaza (miguel@ximian.com)
+//
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System {
+
+       interface ICloneable {
+               public object Clone ();
+       }
+}
diff --git a/mcs/class/corlib/System/IComparable.cs b/mcs/class/corlib/System/IComparable.cs
new file mode 100644 (file)
index 0000000..5a82fdc
--- /dev/null
@@ -0,0 +1,15 @@
+//
+// System.CoreInterfaces.cs
+//
+// Author:
+//   Miguel de Icaza (miguel@ximian.com)
+//
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System {
+
+       interface IComparable {
+               public int CompareTo (object obj);
+       }
+}
diff --git a/mcs/class/corlib/System/IConvertible.cs b/mcs/class/corlib/System/IConvertible.cs
new file mode 100644 (file)
index 0000000..88641c2
--- /dev/null
@@ -0,0 +1,33 @@
+//
+// System.IConvertible.cs
+//
+// Author:
+//   Miguel de Icaza (miguel@ximian.com)
+//
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System {
+
+       interface IConvertible {
+
+               public TypeCode GetTypeCode ();
+
+               public bool     ToBoolean  (IFormatProvider provider);
+               public byte     ToByte     (IFormatProvider provider);
+               public char     ToChar     (IFormatProvider provider);
+               public DateTime ToDateType (IFormatProvider provider);
+               public Decimal  ToDecimal  (IFormatProvider provider);
+               public Double   ToDouble   (IFormatProvider provider);
+               public Int16    ToInt16    (IFormatProvider provider);
+               public Int32    ToInt32    (IFormatProvider provider);
+               public Int32    ToInt64    (IFormatProvider provider);
+               public SByte    ToSByte    (IFormatProvider provider);
+               public float    ToSingle   (IFormatProvider provider);
+               public string   ToString   (IFormatProvider provider);
+               public object   ToType     (Type conversionType, IFormatProvider provider);
+               public UInt16   ToUInt16   (IFormatProvider provider);
+               public UInt32   ToUInt32   (IFormatProvider provider);
+               public UInt32   ToUInt64   (IFormatProvider provider);
+       }
+}
diff --git a/mcs/class/corlib/System/ICustomFormatter.cs b/mcs/class/corlib/System/ICustomFormatter.cs
new file mode 100644 (file)
index 0000000..a370647
--- /dev/null
@@ -0,0 +1,15 @@
+//
+// System.ICustomFormatter.cs
+//
+// Author:
+//   Miguel de Icaza (miguel@ximian.com)
+//
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System {
+
+       interface ICustomFormatter {
+               string Format (string format, object arg, IFormatProvider formatProvider);
+       }
+}
diff --git a/mcs/class/corlib/System/IDisposable.cs b/mcs/class/corlib/System/IDisposable.cs
new file mode 100644 (file)
index 0000000..96d4284
--- /dev/null
@@ -0,0 +1,17 @@
+//
+// System.IDisposable.cs
+//
+// Author:
+//   Miguel de Icaza (miguel@ximian.com)
+//
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System {
+
+       interface IDisposable {
+
+               public void Dispose ();
+               
+       }
+}
diff --git a/mcs/class/corlib/System/IFormatProvider.cs b/mcs/class/corlib/System/IFormatProvider.cs
new file mode 100644 (file)
index 0000000..47a8696
--- /dev/null
@@ -0,0 +1,15 @@
+//
+// System.IFormatProvider.cs
+//
+// Author:
+//   Miguel de Icaza (miguel@ximian.com)
+//
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System {
+
+       interface IFormatProvider {
+               public object GetFormat (Type format_type);
+       }
+}
diff --git a/mcs/class/corlib/System/IFormattable.cs b/mcs/class/corlib/System/IFormattable.cs
new file mode 100644 (file)
index 0000000..57c869f
--- /dev/null
@@ -0,0 +1,15 @@
+//
+// System.IFormattable.cs
+//
+// Author:
+//   Miguel de Icaza (miguel@ximian.com)
+//
+// (C) Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System {
+
+       interface IFormattable {
+               public string ToString (string format, IFormatProvider format_provider);
+       }
+}