コード例 #1
0
 public static IBlockData[] DevicesOfType(IStructureData structure, DeviceTypeName deviceType)
 {
     return structure?.GetCurrent()
                     .GetDevices(deviceType)?
                     .Values()
                     .Select(V => new BlockData(structure.GetCurrent(), V))
                     .ToArray();
 }
コード例 #2
0
 public IBlockData[] DevicesOfType(IStructureData structure, DeviceTypeName deviceType) => BlockHelpers.DevicesOfType(structure, deviceType);