[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnetlib ChangeLog runtime/System/DateTimeKind.c...
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] pnetlib ChangeLog runtime/System/DateTimeKind.c... |
Date: |
Thu, 02 Oct 2008 20:20:19 +0000 |
CVSROOT: /cvsroot/dotgnu-pnet
Module name: pnetlib
Changes by: Klaus Treichel <ktreichel> 08/10/02 20:20:19
Modified files:
. : ChangeLog
Added files:
runtime/System : DateTimeKind.cs
runtime/System/Collections/Generic: ICollection_1.cs
IComparer_1.cs
IEnumerable_1.cs
IEnumerator_1.cs
IEqualityComparer_1.cs
IList_1.cs
KeyNotFoundException.cs
KeyValuePair_2.cs
Removed files:
runtime/System/Collections/Generic: ICollection.cs
IComparable.cs IComparer.cs
IEnumerable.cs
IEnumerator.cs IList.cs
KeyValuePair.cs
Log message:
Rename some files to match the naming convention for generics.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2541&r2=1.2542
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/DateTimeKind.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/ICollection_1.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/IComparer_1.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/IEnumerable_1.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/IEnumerator_1.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/IEqualityComparer_1.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/IList_1.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/KeyNotFoundException.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/KeyValuePair_2.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/ICollection.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=0
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/IComparable.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=0
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/IComparer.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=0
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/IEnumerable.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=0
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/IEnumerator.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=0
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/IList.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=0
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Collections/Generic/KeyValuePair.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=0
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2541
retrieving revision 1.2542
diff -u -b -r1.2541 -r1.2542
--- ChangeLog 30 Sep 2008 18:34:30 -0000 1.2541
+++ ChangeLog 2 Oct 2008 20:20:00 -0000 1.2542
@@ -1,3 +1,29 @@
+2008-10-02 Klaus Treichel <address@hidden>
+
+ * runtime/System/Collections/Generic/ICollection.cs,
+ runtime/System/Collections/Generic/IComparable.cs,
+ runtime/System/Collections/Generic/IComparer.cs,
+ runtime/System/Collections/Generic/IEnumerable.cs,
+ runtime/System/Collections/Generic/IEnumerator.cs,
+ runtime/System/Collections/Generic/IList.cs,
+ runtime/System/Collections/Generic/KeyValuePair.cs: Remove the files to
+ replace them by the files matching the naming convention for files
+ containing generic classes.
+
+ * runtime/System/Collections/Generic/ICollection_1.cs,
+ runtime/System/Collections/Generic/IComparer_1.cs,
+ runtime/System/Collections/Generic/IEnumerable_1.cs,
+ runtime/System/Collections/Generic/IEnumerator_1.cs,
+ runtime/System/Collections/Generic/IEqualityComparer_1.cs,
+ runtime/System/Collections/Generic/IList_1.cs,
+ runtime/System/Collections/Generic/KeyValuePair_2.cs: Readd the files
+ with the correct names and enable build of the classes that cscc is
+ able to build correctly by now.
+
+ * runtime/System/Collections/Generic/KeyNotFoundException.cs: Added.
+
+ * runtime/System/DateTimeKind.cs: Add non ECMA 2.0 enumeration.
+
2008-09-30 Klaus Treichel <address@hidden>
* tests/System/Diagnostics/TestStopwatch.cs (TestStopwatchCCtor): Check
Index: runtime/System/DateTimeKind.cs
===================================================================
RCS file: runtime/System/DateTimeKind.cs
diff -N runtime/System/DateTimeKind.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/DateTimeKind.cs 2 Oct 2008 20:20:01 -0000 1.1
@@ -0,0 +1,41 @@
+/*
+ * DateTimeKind.cs - Implementation of the "System.DateTimeKind" class.
+ *
+ * Copyright (C) 2008 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !ECMA_COMPAT
+
+using System.Runtime.InteropServices;
+
+// [Serializable]
+// [ComVisible(true)]
+public enum DateTimeKind
+{
+
+ Unspecified = 0,
+ Utc = 1,
+ Local = 2
+
+}; // enum DateTimeKind
+
+#endif // CONFIG_FRAMEWORK_2_0 && !ECMA_COMPAT
+
+}; // namespace System
Index: runtime/System/Collections/Generic/ICollection_1.cs
===================================================================
RCS file: runtime/System/Collections/Generic/ICollection_1.cs
diff -N runtime/System/Collections/Generic/ICollection_1.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Collections/Generic/ICollection_1.cs 2 Oct 2008 20:20:01
-0000 1.1
@@ -0,0 +1,41 @@
+/*
+ * ICollection_1.cs - Implementation of the
+ * "System.Collections.Generic.ICollection<T>" class.
+ *
+ * Copyright (C) 2003, 2008 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Collections.Generic
+{
+
+#if CONFIG_FRAMEWORK_2_0 && CONFIG_GENERICS
+
+public interface ICollection<T> : IEnumerable<T>
+{
+ void Add(T item);
+ void Clear();
+ bool Contains(T item);
+ void CopyTo(T[] array, int index);
+ bool Remove(T item);
+ int Count { get; }
+ bool IsReadOnly { get; }
+
+}; // interface ICollection<T>
+
+#endif // CONFIG_FRAMEWORK_2_0 && CONFIG_GENERICS
+
+}; // namespace System.Collections.Generic
Index: runtime/System/Collections/Generic/IComparer_1.cs
===================================================================
RCS file: runtime/System/Collections/Generic/IComparer_1.cs
diff -N runtime/System/Collections/Generic/IComparer_1.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Collections/Generic/IComparer_1.cs 2 Oct 2008 20:20:02
-0000 1.1
@@ -0,0 +1,35 @@
+/*
+ * IComparer.cs - Implementation of the
+ * "System.Collections.Generic.IComparer" class.
+ *
+ * Copyright (C) 2003, 2008 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Collections.Generic
+{
+
+#if CONFIG_FRAMEWORK_2_0
+
+public interface IComparer<T>
+{
+ int Compare(T x, T y);
+
+}; // interface IComparer<T>
+
+#endif // CONFIG_FRAMEWORK_2_0
+
+}; // namespace System.Collections.Generic
Index: runtime/System/Collections/Generic/IEnumerable_1.cs
===================================================================
RCS file: runtime/System/Collections/Generic/IEnumerable_1.cs
diff -N runtime/System/Collections/Generic/IEnumerable_1.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Collections/Generic/IEnumerable_1.cs 2 Oct 2008 20:20:03
-0000 1.1
@@ -0,0 +1,35 @@
+/*
+ * IEnumerable_1.cs - Implementation of the
+ * "System.Collections.Generic.IEnumerable<T>" class.
+ *
+ * Copyright (C) 2003 2008 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Collections.Generic
+{
+
+#if CONFIG_FRAMEWORK_2_0
+
+public interface IEnumerable<T> : IEnumerable
+{
+ new IEnumerator<T> GetEnumerator();
+
+}; // interface IEnumerable<T>
+
+#endif // CONFIG_FRAMEWORK_2_0 && CONFIG_GENERICS
+
+}; // namespace System.Collections.Generic
Index: runtime/System/Collections/Generic/IEnumerator_1.cs
===================================================================
RCS file: runtime/System/Collections/Generic/IEnumerator_1.cs
diff -N runtime/System/Collections/Generic/IEnumerator_1.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Collections/Generic/IEnumerator_1.cs 2 Oct 2008 20:20:05
-0000 1.1
@@ -0,0 +1,35 @@
+/*
+ * IEnumerator_1.cs - Implementation of the
+ * "System.Collections.Generic.IEnumerator<T>" class.
+ *
+ * Copyright (C) 2003 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Collections.Generic
+{
+
+#if CONFIG_FRAMEWORK_2_0
+
+public interface IEnumerator<T> : IDisposable, IEnumerator
+{
+ new T Current { get; }
+
+}; // interface IEnumerator<T>
+
+#endif // CONFIG_FRAMEWORK_2_0
+
+}; // namespace System.Collections.Generic
Index: runtime/System/Collections/Generic/IEqualityComparer_1.cs
===================================================================
RCS file: runtime/System/Collections/Generic/IEqualityComparer_1.cs
diff -N runtime/System/Collections/Generic/IEqualityComparer_1.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Collections/Generic/IEqualityComparer_1.cs 2 Oct 2008
20:20:06 -0000 1.1
@@ -0,0 +1,36 @@
+/*
+ * IEqualityComparer_1.cs - Implementation of the
+ * "System.Collections.Generic.IEqualityComparer<T>" class.
+ *
+ * Copyright (C) 2008 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Collections.Generic
+{
+
+#if CONFIG_FRAMEWORK_2_0
+
+public interface IEqualityComparer<T>
+{
+ bool Equals(T x, T y);
+ int GetHashCode(T obj);
+
+}; // interface IEqualityComparer<T>
+
+#endif // CONFIG_FRAMEWORK_2_0
+
+}; // namespace System.Collections.Generic
Index: runtime/System/Collections/Generic/IList_1.cs
===================================================================
RCS file: runtime/System/Collections/Generic/IList_1.cs
diff -N runtime/System/Collections/Generic/IList_1.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Collections/Generic/IList_1.cs 2 Oct 2008 20:20:06
-0000 1.1
@@ -0,0 +1,38 @@
+/*
+ * IList_1.cs - Implementation of the
+ * "System.Collections.Generic.IList<T>" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Collections.Generic
+{
+
+#if CONFIG_FRAMEWORK_2_0 && CONFIG_GENERICS
+
+public interface IList<T> : ICollection<T>
+{
+ int IndexOf(T value);
+ void Insert(int index, T value);
+ void RemoveAt(int index);
+ T this[int index] { get; set; }
+
+}; // interface IList<T>
+
+#endif // CONFIG_FRAMEWORK_2_0 && CONFIG_GENERICS
+
+}; // namespace System.Collections.Generic
Index: runtime/System/Collections/Generic/KeyNotFoundException.cs
===================================================================
RCS file: runtime/System/Collections/Generic/KeyNotFoundException.cs
diff -N runtime/System/Collections/Generic/KeyNotFoundException.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Collections/Generic/KeyNotFoundException.cs 2 Oct 2008
20:20:07 -0000 1.1
@@ -0,0 +1,61 @@
+/*
+ * KeyNotFoundException.cs - Implementation of the
+ * "System.Collections.Generic.KeyNotFoundException" class.
+ *
+ * Copyright (C) 2008 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Collections.Generic
+{
+
+#if CONFIG_FRAMEWORK_2_0
+
+using System;
+
+#if CONFIG_SERIALIZATION && !ECMA_COMPAT
+using System.Runtime.Serialization;
+#endif
+
+#if !ECMA_COMPAT
+[Serializable]
+#endif
+public class KeyNotFoundException : SystemException
+#if CONFIG_SERIALIZATION && !ECMA_COMPAT
+ , ISerializable
+#endif
+{
+ // Standard error message for null exceptions.
+ private static String preloadedMessage = _("Key_NotFound");
+
+ // Constructors.
+ public KeyNotFoundException()
+ : base(preloadedMessage) {}
+ public KeyNotFoundException(String message)
+ : base(message) {}
+ public KeyNotFoundException(String message, Exception innerException)
+ : base(message, innerException) {}
+#if CONFIG_SERIALIZATION && !ECMA_COMPAT
+ protected KeyNotFoundException(SerializationInfo info,
+
StreamingContext context)
+ : base(info, context) {}
+#endif
+
+}; // class KeyNotFoundException
+
+#endif // CONFIG_FRAMEWORK_2_0
+
+}; // namespace System.Collections.Generic
Index: runtime/System/Collections/Generic/KeyValuePair_2.cs
===================================================================
RCS file: runtime/System/Collections/Generic/KeyValuePair_2.cs
diff -N runtime/System/Collections/Generic/KeyValuePair_2.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ runtime/System/Collections/Generic/KeyValuePair_2.cs 2 Oct 2008
20:20:08 -0000 1.1
@@ -0,0 +1,85 @@
+/*
+ * KeyValuePair_2.cs - Implementation of the
+ * "System.Collections.Generic.KeyValuePair<K, V>" class.
+ *
+ * Copyright (C) 2003, 2008 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Collections.Generic
+{
+
+#if CONFIG_FRAMEWORK_2_0
+
+#if ECMA_COMPAT
+public struct KeyValuePair<K,V>
+#else
+[Serializable]
+public struct KeyValuePair<TKey,TValue>
+#endif
+{
+ // Internal state.
+#if ECMA_COMPAT
+ public K Key;
+ public V Value;
+
+ // Constructor.
+ public KeyValuePair(K key, V value)
+ {
+ this.Key = key;
+ this.Value = value;
+ }
+#else // !ECMA_COMPAT
+ private TKey key;
+ private TValue value;
+
+ // Constructor.
+ public KeyValuePair(TKey key, TValue value)
+ {
+ this.key = key;
+ this.value = value;
+ }
+
+ // methods
+ [TODO]
+ public override String ToString()
+ {
+ throw new NotImplementedException();
+ }
+
+ // properties
+ public TKey Key
+ {
+ get
+ {
+ return key;
+ }
+ }
+
+ public TValue Value
+ {
+ get
+ {
+ return this.value;
+ }
+ }
+#endif // !ECMA_COMPAT
+
+}; // struct KeyValuePair<K,V>
+
+#endif // CONFIG_FRAMEWORK_2_0
+
+}; // namespace System.Collections.Generic
Index: runtime/System/Collections/Generic/ICollection.cs
===================================================================
RCS file: runtime/System/Collections/Generic/ICollection.cs
diff -N runtime/System/Collections/Generic/ICollection.cs
--- runtime/System/Collections/Generic/ICollection.cs 6 Nov 2003 21:48:36
-0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,43 +0,0 @@
-/*
- * ICollection.cs - Implementation of the
- * "System.Collections.Generic.ICollection" class.
- *
- * Copyright (C) 2003 Southern Storm Software, Pty Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-namespace System.Collections.Generic
-{
-
-#if CONFIG_GENERICS
-
-using System.Runtime.InteropServices;
-
-#if !ECMA_COMPAT
-[ComVisible(false)]
-#endif
-[CLSCompliant(false)]
-public interface ICollection<T> : IEnumerable<T>
-{
-
- void CopyTo(T[] array, int arrayIndex);
- int Count { get; }
-
-}; // interface ICollection<T>
-
-#endif // CONFIG_GENERICS
-
-}; // namespace System.Collections.Generic
Index: runtime/System/Collections/Generic/IComparable.cs
===================================================================
RCS file: runtime/System/Collections/Generic/IComparable.cs
diff -N runtime/System/Collections/Generic/IComparable.cs
--- runtime/System/Collections/Generic/IComparable.cs 6 Nov 2003 21:48:36
-0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,41 +0,0 @@
-/*
- * IComparable.cs - Implementation of the
- * "System.Collections.Generic.IComparable" class.
- *
- * Copyright (C) 2003 Southern Storm Software, Pty Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-namespace System.Collections.Generic
-{
-
-#if CONFIG_GENERICS
-
-using System.Runtime.InteropServices;
-
-#if !ECMA_COMPAT
-[ComVisible(false)]
-#endif
-[CLSCompliant(false)]
-public interface IComparable<T>
-{
- int CompareTo(T other);
-
-}; // interface IComparable<T>
-
-#endif // CONFIG_GENERICS
-
-}; // namespace System.Collections.Generic
Index: runtime/System/Collections/Generic/IComparer.cs
===================================================================
RCS file: runtime/System/Collections/Generic/IComparer.cs
diff -N runtime/System/Collections/Generic/IComparer.cs
--- runtime/System/Collections/Generic/IComparer.cs 6 Nov 2003 21:48:36
-0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,41 +0,0 @@
-/*
- * IComparer.cs - Implementation of the
- * "System.Collections.Generic.IComparer" class.
- *
- * Copyright (C) 2003 Southern Storm Software, Pty Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-namespace System.Collections.Generic
-{
-
-#if CONFIG_GENERICS
-
-using System.Runtime.InteropServices;
-
-#if !ECMA_COMPAT
-[ComVisible(false)]
-#endif
-[CLSCompliant(false)]
-public interface IComparer<T>
-{
- int Compare(T x, T y);
-
-}; // interface IComparer<T>
-
-#endif // CONFIG_GENERICS
-
-}; // namespace System.Collections.Generic
Index: runtime/System/Collections/Generic/IEnumerable.cs
===================================================================
RCS file: runtime/System/Collections/Generic/IEnumerable.cs
diff -N runtime/System/Collections/Generic/IEnumerable.cs
--- runtime/System/Collections/Generic/IEnumerable.cs 6 Nov 2003 21:48:36
-0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,41 +0,0 @@
-/*
- * IEnumerable.cs - Implementation of the
- * "System.Collections.Generic.IEnumerable" class.
- *
- * Copyright (C) 2003 Southern Storm Software, Pty Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-namespace System.Collections.Generic
-{
-
-#if CONFIG_GENERICS
-
-using System.Runtime.InteropServices;
-
-#if !ECMA_COMPAT
-[ComVisible(false)]
-#endif
-[CLSCompliant(false)]
-public interface IEnumerable<T>
-{
- IEnumerator<T> GetEnumerator();
-
-}; // interface IEnumerable<T>
-
-#endif // CONFIG_GENERICS
-
-}; // namespace System.Collections.Generic
Index: runtime/System/Collections/Generic/IEnumerator.cs
===================================================================
RCS file: runtime/System/Collections/Generic/IEnumerator.cs
diff -N runtime/System/Collections/Generic/IEnumerator.cs
--- runtime/System/Collections/Generic/IEnumerator.cs 6 Nov 2003 21:48:36
-0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,42 +0,0 @@
-/*
- * IEnumerator.cs - Implementation of the
- * "System.Collections.Generic.IEnumerator" class.
- *
- * Copyright (C) 2003 Southern Storm Software, Pty Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-namespace System.Collections.Generic
-{
-
-#if CONFIG_GENERICS
-
-using System.Runtime.InteropServices;
-
-#if !ECMA_COMPAT
-[ComVisible(false)]
-#endif
-[CLSCompliant(false)]
-public interface IEnumerator<T>
-{
- bool MoveNext();
- T Current { get; }
-
-}; // interface IEnumerator<T>
-
-#endif // CONFIG_GENERICS
-
-}; // namespace System.Collections.Generic
Index: runtime/System/Collections/Generic/IList.cs
===================================================================
RCS file: runtime/System/Collections/Generic/IList.cs
diff -N runtime/System/Collections/Generic/IList.cs
--- runtime/System/Collections/Generic/IList.cs 6 Nov 2003 21:48:36 -0000
1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,50 +0,0 @@
-/*
- * IList.cs - Implementation of the
- * "System.Collections.Generic.IList" class.
- *
- * Copyright (C) 2003 Southern Storm Software, Pty Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-namespace System.Collections.Generic
-{
-
-#if CONFIG_GENERICS
-
-using System.Runtime.InteropServices;
-
-#if !ECMA_COMPAT
-[ComVisible(false)]
-#endif
-[CLSCompliant(false)]
-public interface IList<T> : ICollection<T>
-{
- int Add(T item);
- void Clear();
- bool Contains(T item);
- int IndexOf(T item);
- void Insert(int index, T item);
- void Remove(T item);
- void RemoveAt(int index);
- bool IsFixedSize { get; }
- bool IsReadOnly { get; }
- T this[int index] { get; set; }
-
-}; // interface IList<T>
-
-#endif // CONFIG_GENERICS
-
-}; // namespace System.Collections.Generic
Index: runtime/System/Collections/Generic/KeyValuePair.cs
===================================================================
RCS file: runtime/System/Collections/Generic/KeyValuePair.cs
diff -N runtime/System/Collections/Generic/KeyValuePair.cs
--- runtime/System/Collections/Generic/KeyValuePair.cs 6 Nov 2003 21:48:36
-0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,74 +0,0 @@
-/*
- * KeyValuePair.cs - Implementation of the
- * "System.Collections.Generic.KeyValuePair" class.
- *
- * Copyright (C) 2003 Southern Storm Software, Pty Ltd.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-namespace System.Collections.Generic
-{
-
-#if CONFIG_GENERICS
-
-using System.Runtime.InteropServices;
-
-#if !ECMA_COMPAT
-[ComVisible(false)]
-#endif
-[CLSCompliant(false)]
-public struct KeyValuePair<K,V>
-{
- // Internal state.
- private K key;
- private V value;
-
- // Constructor.
- public KeyValuePair(K key, V value)
- {
- this.key = key;
- this.value = value;
- }
-
- // Properties.
- public K Key
- {
- get
- {
- return key;
- }
- set
- {
- key = value;
- }
- }
- public V Value
- {
- get
- {
- return this.value;
- }
- set
- {
- this.value = value;
- }
- }
-
-}; // struct KeyValuePair<K,V>
-
-#endif // CONFIG_GENERICS
-
-}; // namespace System.Collections.Generic
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnetlib ChangeLog runtime/System/DateTimeKind.c...,
Klaus Treichel <=