CodeSolid

A Go Programming Notebook

A Quick DriveInfo Example

Too easy. `

using System;
using System.IO;

public class DriveInfoExample
{
    public static void Main(string [] args)
    {
        DriveInfo [] dilist = DriveInfo.GetDrives();
        foreach (DriveInfo di in dilist)
        {
            Console.WriteLine("Drive:  {0}, type: {1}",
            di.Name, di.DriveType);
        }
        Console.ReadKey();
    }
}

`