Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / EmptyEnumerator.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="EmptyEnumerator.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 // <owner current="true" primary="true">Microsoft</owner>
6 //------------------------------------------------------------------------------
7
8 using System;
9 using System.Collections;
10
11 namespace System.Xml {
12
13     internal sealed class EmptyEnumerator : IEnumerator {
14
15         bool IEnumerator.MoveNext() {
16             return false;
17         }
18
19         void IEnumerator.Reset() {
20         }
21
22         object IEnumerator.Current {
23             get {
24                 throw new InvalidOperationException( Res.GetString( Res.Xml_InvalidOperation ) );
25             }
26         }
27     }
28 }