All pastes #22232 Raw Edit

Miscellany

public text v1 · immutable
#22232 ·published 2005-09-06 14:57 UTC
rendered paste body
using System;
using MSG = System.Collections.Generic;

public class HashSet<T>
{
        long value;

        public HashSet (long value)
        {
                this.value = value;
        }

        public void Test ()
        {
                Console.WriteLine (value);
        }

        public MSG.IEnumerator<T> GetEnumerator()
        {
                Test ();
                yield break;
        }
}

class X
{
        static void Main ()
        {
                HashSet<int> hb = new HashSet<int> (12345678);

                foreach (int value in hb)
                        Console.WriteLine (value);
        }
}