public static IBlockData[] DevicesOfType(IStructureData structure, DeviceTypeName deviceType) { return structure?.GetCurrent() .GetDevices(deviceType)? .Values() .Select(V => new BlockData(structure.GetCurrent(), V)) .ToArray(); }
public IBlockData[] DevicesOfType(IStructureData structure, DeviceTypeName deviceType) => BlockHelpers.DevicesOfType(structure, deviceType);