summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Collections/ICollection.cs
diff options
context:
space:
mode:
authorJames Ko <jamesqko@gmail.com>2016-06-04 00:59:49 -0400
committerJan Kotas <jkotas@microsoft.com>2016-06-03 21:59:49 -0700
commit1fa75e7c5d56d481a2d0b8bc4fb3bdab8e6838d5 (patch)
treeccb1dff094313a67b9001f97352848f7364db4e3 /src/mscorlib/src/System/Collections/ICollection.cs
parent84c48256883f215d42de50a4e2d10b2204c755e0 (diff)
downloadcoreclr-1fa75e7c5d56d481a2d0b8bc4fb3bdab8e6838d5.tar.gz
coreclr-1fa75e7c5d56d481a2d0b8bc4fb3bdab8e6838d5.tar.bz2
coreclr-1fa75e7c5d56d481a2d0b8bc4fb3bdab8e6838d5.zip
Remove all usages of CONTRACTS_FULL from mscorlib (#5454)
* Remove CONTRACTS_FULL from Array * Remove CONTRACTS_FULL from ArraySortHelper * Remove CONTRACTS_FULL from ICollection * Remove CONTRACTS_FULL from IDictionary * Remove CONTRACTS_FULL from IEnumerable * Remove CONTRACTS_FULL from IList * Remove CONTRACTS_FULL from IReadOnlyCollection * Remove CONTRACTS_FULL from IReadOnlyDictionary * Remove CONTRACTS_FULL from IReadOnlyList * Remove CONTRACTS_FULL from the nongeneric collections * Remove CONTRACTS_FULL from IConvertible and IFormattable * Remove CONTRACTS_FULL from System.IO * Remove CONTRACTS_FULL from System.Reflection
Diffstat (limited to 'src/mscorlib/src/System/Collections/ICollection.cs')
-rw-r--r--src/mscorlib/src/System/Collections/ICollection.cs36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/mscorlib/src/System/Collections/ICollection.cs b/src/mscorlib/src/System/Collections/ICollection.cs
index d19412f906..6d4d6e1a93 100644
--- a/src/mscorlib/src/System/Collections/ICollection.cs
+++ b/src/mscorlib/src/System/Collections/ICollection.cs
@@ -19,9 +19,6 @@ namespace System.Collections {
// Base interface for all collections, defining enumerators, size, and
// synchronization methods.
-#if CONTRACTS_FULL
- [ContractClass(typeof(ICollectionContract))]
-#endif // CONTRACTS_FULL
[System.Runtime.InteropServices.ComVisible(true)]
public interface ICollection : IEnumerable
{
@@ -81,37 +78,4 @@ namespace System.Collections {
bool IsSynchronized
{ get; }
}
-
-#if CONTRACTS_FULL
- [ContractClassFor(typeof(ICollection))]
- internal abstract class ICollectionContract : ICollection
- {
- void ICollection.CopyTo(Array array, int index)
- {
- }
-
- int ICollection.Count {
- get {
- Contract.Ensures(Contract.Result<int>() >= 0);
- return default(int);
- }
- }
-
- Object ICollection.SyncRoot {
- get {
- Contract.Ensures(Contract.Result<Object>() != null);
- return default(Object);
- }
- }
-
- bool ICollection.IsSynchronized {
- get { return default(bool); }
- }
-
- IEnumerator IEnumerable.GetEnumerator()
- {
- return default(IEnumerator);
- }
- }
-#endif // CONTRACTS_FULL
}