summaryrefslogtreecommitdiff
path: root/src/mscorlib/shared/System/Collections/IEnumerable.cs
blob: 91aec62423883fc57b0614ec00e794129104dd53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.Diagnostics.Contracts;
using System.Runtime.InteropServices;

namespace System.Collections
{
    public interface IEnumerable
    {
        // Returns an IEnumerator for this enumerable Object.  The enumerator provides
        // a simple way to access all the contents of a collection.
        [Pure]
        IEnumerator GetEnumerator();
    }
}