using System.Collections; using System.Collections.Generic; namespace NationalInstruments.Tdms { public class Group : IEnumerable { public Group(string name, IDictionary properties) { Name = name; Properties = properties; Channels = new Dictionary(); } public string Name { get; private set; } public IDictionary Properties { get; private set; } public IDictionary Channels { get; private set; } public IEnumerator GetEnumerator() { return Channels.Values.GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } } }