예제 #1
0
        public static DeviceInfo[] BuildDeviceInfos(IEnumerable <DeviceInfoSource> deviceInfoSources)
        {
            if (deviceInfoSources == null)
            {
                return(null);
            }

            var deviceInfos = new DeviceInfo[0];

            foreach (var deviceInfoSource in deviceInfoSources)
            {
                deviceInfos = deviceInfos.Append(BuildDeviceInfo(deviceInfoSource));
            }

            return(deviceInfos);
        }