using System; namespace DataStreamMeter { public class Sample { public readonly double Time; /// In water meter time units public readonly double Volume; /// In water meter colume units public readonly double Flow; /// In water meter flow units public Sample(double time, double volume, double flow) { Time = time; Volume = volume; Flow = flow; } public override string ToString() { return string.Format("time={0} volume={1} flow={2}", Time, Volume, Flow); } } }