ChannelList就是一个List类型的数据,IsOpen 是其元素的属性
channelCount = (from channel in DevicesManager.Instance.CurrentDevice.ChannelList
where channel.IsOpen
group channel by channel.ChannelID).Count();
时间: 2024-10-08 06:51:52