PageRenderTime 46ms CodeModel.GetById 42ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Main/src/DynamicDataDisplay/DataSources/OneDimensional/RawDataSource.cs

#
C# | 14 lines | 12 code | 2 blank | 0 comment | 0 complexity | 2649d25e04d3457e6fff06410d13aeca MD5 | raw file
 1using System.Collections.Generic;
 2using System.Windows;
 3
 4namespace Microsoft.Research.DynamicDataDisplay.DataSources
 5{
 6	public sealed class RawDataSource : EnumerableDataSourceBase<Point> {
 7		public RawDataSource(params Point[] data) : base(data) { }
 8		public RawDataSource(IEnumerable<Point> data) : base(data) { }
 9
10		public override IPointEnumerator GetEnumerator(DependencyObject context) {
11			return new RawPointEnumerator(this);
12		}
13	}
14}