public static IEnumerable<IPartition> Enumerate()
        {
            int hddNumber = 0;
            var info = new HardDriveInfo(hddNumber);
            hddNumber++;

            if (info.Partitions != null)
            {
                foreach (var partition in info.Partitions)
                {
                    yield return partition;
                }
            }
            else
            {
                yield break;
            }
        }
        public static IEnumerable <IPartition> Enumerate()
        {
            int hddNumber = 0;
            var info      = new HardDriveInfo(hddNumber);

            hddNumber++;

            if (info.Partitions != null)
            {
                foreach (var partition in info.Partitions)
                {
                    yield return(partition);
                }
            }
            else
            {
                yield break;
            }
        }