2009-05-22 Zoltan Varga <vargaz@gmail.com>
authorZoltan Varga <vargaz@gmail.com>
Fri, 22 May 2009 21:28:58 +0000 (21:28 -0000)
committerZoltan Varga <vargaz@gmail.com>
Fri, 22 May 2009 21:28:58 +0000 (21:28 -0000)
* IStructuralComparable.cs IStructuralEquatable.cs: New files.

svn path=/trunk/mcs/; revision=134620

mcs/class/corlib/System.Collections/ChangeLog
mcs/class/corlib/System.Collections/IStructuralComparable.cs [new file with mode: 0644]
mcs/class/corlib/System.Collections/IStructuralEquatable.cs [new file with mode: 0644]

index e24a5498d5cdc0f02c06e3c9872cde949013ae0d..68d37a19c196aedfe48e7514d4b97ca72414d7b5 100644 (file)
@@ -1,3 +1,7 @@
+2009-05-22  Zoltan Varga  <vargaz@gmail.com>
+
+       * IStructuralComparable.cs IStructuralEquatable.cs: New files.
+
 2008-08-31  Zoltan Varga  <vargaz@gmail.com>
 
        * BitArray.cs (CopyTo): Allow an index equal to the array length if
diff --git a/mcs/class/corlib/System.Collections/IStructuralComparable.cs b/mcs/class/corlib/System.Collections/IStructuralComparable.cs
new file mode 100644 (file)
index 0000000..3df02b5
--- /dev/null
@@ -0,0 +1,40 @@
+//
+// IStructuralComparable.cs
+//
+// Authors:
+//  Zoltan Varga (vargaz@gmail.com)
+//
+// Copyright (C) 2009 Novell
+//
+// 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_4_0
+
+using System;
+
+namespace System.Collections
+{
+       public interface IStructuralComparable {
+               int CompareTo (object other, IComparer comparer);
+       }
+}
+
+#endif
diff --git a/mcs/class/corlib/System.Collections/IStructuralEquatable.cs b/mcs/class/corlib/System.Collections/IStructuralEquatable.cs
new file mode 100644 (file)
index 0000000..cc41773
--- /dev/null
@@ -0,0 +1,42 @@
+//
+// IStructuralEquatable.cs
+//
+// Authors:
+//  Zoltan Varga (vargaz@gmail.com)
+//
+// Copyright (C) 2009 Novell
+//
+// 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_4_0
+
+using System;
+
+namespace System.Collections
+{
+       public interface IStructuralEquatable {
+               bool Equals (object other, IEqualityComparer comparer);
+
+               int GetHashCode (IEqualityComparer comparer);
+       }
+}
+
+#endif