123456789101112131415161718192021222324252627282930 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace DiskAccessLibrary.LogicalDiskManager
- {
- public class DynamicDiskExtentsHelper
- {
-
-
-
- public static void SortExtentsByFirstSector(List<DynamicDiskExtent> extents)
- {
- SortedList<long, DynamicDiskExtent> list = new SortedList<long, DynamicDiskExtent>();
- foreach (DynamicDiskExtent extent in extents)
- {
- list.Add(extent.FirstSector, extent);
- }
- extents.Clear();
- extents.AddRange(list.Values);
- }
- }
- }
|