示例#1
0
        public void Return_A_Specified_Type_Of_IEnumerable()
        {
            var buffer = new CircularBuffer <double>(capacity: 3);
            var values = new[] { 1.2, 2.4, 3.6 };

            foreach (var value in values)
            {
                buffer.Write(value);
                Trace.WriteLine(value);
            }

            var asInts = buffer.AsIEnumerableOfxtention <double, int>();

            foreach (var item in asInts)
            {
                Trace.WriteLine(item);
            }
        }