Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / mscorlib / system / security / util / tokenbasedsetenumerator.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 // TokenBasedSetEnumerator.cs
7 // 
8 // <OWNER>Microsoft</OWNER>
9 //
10
11 namespace System.Security.Util 
12 {
13     using System;
14     using System.Collections;
15
16     internal struct TokenBasedSetEnumerator
17     {
18         public Object Current;
19         public int Index;
20                 
21         private TokenBasedSet _tb;
22                             
23         public bool MoveNext()
24         {
25             return _tb != null ? _tb.MoveNext(ref this) : false;
26         }
27                 
28         public void Reset()
29         {
30             Index = -1;
31             Current = null;
32         }
33                             
34         public TokenBasedSetEnumerator(TokenBasedSet tb)
35         {
36             Index = -1;
37             Current = null;
38             _tb = tb;
39         }
40     }
41 }
42