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

RogueEnumerable.cs « Tests « Tests.System.Reactive « Rx.NET - github.com/mono/rx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b2feb9c0449546ddbdb0e7a1ef545f2f505093aa (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
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;

namespace ReactiveTests.Tests
{
    class RogueEnumerable<T> : IEnumerable<T>
    {
        private readonly Exception _ex;

        public RogueEnumerable(Exception ex)
        {
            _ex = ex;
        }

        public IEnumerator<T> GetEnumerator()
        {
            throw _ex;
        }

        System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
        {
            throw new NotImplementedException();
        }
    }
}