Welcome to mirror list, hosted at ThFree Co, Russian Federation.

EmptyEnumerator.cs « Xml « System « System.Xml « referencesource « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5d9787f124858ad12c709fa6a64ff72089652983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//------------------------------------------------------------------------------
// <copyright file="EmptyEnumerator.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
// <owner current="true" primary="true">Microsoft</owner>
//------------------------------------------------------------------------------

using System;
using System.Collections;

namespace System.Xml {

    internal sealed class EmptyEnumerator : IEnumerator {

        bool IEnumerator.MoveNext() {
            return false;
        }

        void IEnumerator.Reset() {
        }

        object IEnumerator.Current {
            get {
                throw new InvalidOperationException( Res.GetString( Res.Xml_InvalidOperation ) );
            }
        }
    }
}