Debian Codegraph @

external/rx/Rx/NET/Source/Tests.System.Reactive/Tests/RogueEnumerable.cs

raw
1 // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
2
3 using System;
4 using System.Collections.Generic;
5
6 namespace ReactiveTests.Tests
7 {
8 class RogueEnumerable<T> : IEnumerable<T>
9 {
10 private readonly Exception _ex;
11
12 public RogueEnumerable(Exception ex)
13 {
14 _ex = ex;
15 }
16
17 public IEnumerator<T> GetEnumerator()
18 {
19 throw _ex;
20 }
21
22 System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
23 {
24 throw new NotImplementedException();
25 }
26 }
27 }