DriveInfo and DriveType question
Posted on 2014-01-05
DriveInfo info = new DriveInfo(drive);
Why does this code from a tutorial have "case DriveType.CdRom" instead of just "case CDRom"?
I thought that if info.DriveType is a property that returns a string, than it would return "CDRom". So why the leading DriveType in DriveType.CDRom?