using System.IO; namespace Quasar.Common.Extensions { public static class DriveTypeExtensions { /// /// Converts the value of the instance to its friendly string representation. /// /// The . /// The friendly string representation of the value of this instance. public static string ToFriendlyString(this DriveType type) { switch (type) { case DriveType.Fixed: return "Local Disk"; case DriveType.Network: return "Network Drive"; case DriveType.Removable: return "Removable Drive"; default: return type.ToString(); } } } }