private static void MapPhysicalVolumes(IEnumerable <PhysicalVolumeInfo> physicalVols, Dictionary <string, LogicalVolumeInfo> result) { foreach (var physicalVol in physicalVols) { LogicalVolumeInfo lvi = new LogicalVolumeInfo( physicalVol.PartitionIdentity, physicalVol, physicalVol.Open, physicalVol.Length, physicalVol.BiosType, LogicalVolumeStatus.Healthy); result.Add(lvi.Identity, lvi); } }
private static void MapPhysicalVolumes(IEnumerable<PhysicalVolumeInfo> physicalVols, Dictionary<string, LogicalVolumeInfo> result) { foreach (var physicalVol in physicalVols) { LogicalVolumeInfo lvi = new LogicalVolumeInfo( physicalVol.PartitionIdentity, physicalVol, physicalVol.Open, physicalVol.Length, physicalVol.BiosType, LogicalVolumeStatus.Healthy); result.Add(lvi.Identity, lvi); } }