System.IO.DriveInfo.GetDrives C# (CSharp) Method

GetDrives() public static method

public static GetDrives ( ) : System.IO.DriveInfo[]
return System.IO.DriveInfo[]
        public static System.IO.DriveInfo[] GetDrives() { throw null; }
        public override string ToString() { throw null; }

Same methods

DriveInfo::GetDrives ( ) : System.IO.DriveInfo[]

Usage Example

 public IReadOnlyList <DriveInfo> GetMountedDrives() =>
 IoDriveInfo
 .GetDrives()
 .Select(CreateFrom)
 .WhereNotNull()
 .ToArray();