Click here to Skip to main content
16,006,531 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problems with regular expressions Pin
pcaeiro12-Mar-08 0:28
pcaeiro12-Mar-08 0:28 
GeneralRe: Problems with regular expressions Pin
Ravenet11-Mar-08 17:23
Ravenet11-Mar-08 17:23 
GeneralRe: Problems with regular expressions Pin
pcaeiro12-Mar-08 0:40
pcaeiro12-Mar-08 0:40 
GeneralProblems with C# Examples Pin
Jammer11-Mar-08 9:54
Jammer11-Mar-08 9:54 
GeneralRe: Problems with C# Examples Pin
Guffa11-Mar-08 10:03
Guffa11-Mar-08 10:03 
GeneralRe: Problems with C# Examples Pin
Jammer11-Mar-08 10:08
Jammer11-Mar-08 10:08 
GeneralRe: Problems with C# Examples Pin
Guffa11-Mar-08 10:51
Guffa11-Mar-08 10:51 
GeneralRe: Problems with C# Examples Pin
Jammer11-Mar-08 10:04
Jammer11-Mar-08 10:04 
Hi Again,

All i'm doing is:

private static List<string> GetMachinesDirectoryList()
{
    List<string> DirectoryList = new List<string>();

    string[] drives = Directory.GetLogicalDrives();

    //String[] drives = Environment.GetLogicalDrives();


    return DirectoryList;
}</string></string></string>


Yet neither line works for me ... If I add a watch I just get an out of context error. All the examples out there I can find do *exactly* the same thing string[] drives = Directory.GetLogicalDrives(); so how come this doesn't work in my code?

Cheers,

Jammer

Going where everyone here has gone before! Smile | :)

GeneralRe: Problems with C# Examples Pin
Scott Dorman11-Mar-08 10:28
professionalScott Dorman11-Mar-08 10:28 
GeneralRe: Problems with C# Examples Pin
Jammer11-Mar-08 10:30
Jammer11-Mar-08 10:30 
GeneralRe: Problems with C# Examples Pin
Christian Graus11-Mar-08 10:39
protectorChristian Graus11-Mar-08 10:39 
GeneralOT Pin
Pete O'Hanlon11-Mar-08 12:08
mvePete O'Hanlon11-Mar-08 12:08 
GeneralRe: OT Pin
Jammer11-Mar-08 13:09
Jammer11-Mar-08 13:09 
GeneralRe: OT Pin
Luc Pattyn11-Mar-08 15:13
sitebuilderLuc Pattyn11-Mar-08 15:13 
GeneralRe: OT Pin
Jammer11-Mar-08 15:26
Jammer11-Mar-08 15:26 
GeneralRe: OT Pin
Luc Pattyn11-Mar-08 16:14
sitebuilderLuc Pattyn11-Mar-08 16:14 
GeneralRe: OT Pin
Pete O'Hanlon11-Mar-08 23:19
mvePete O'Hanlon11-Mar-08 23:19 
GeneralRe: OT Pin
Jammer12-Mar-08 8:57
Jammer12-Mar-08 8:57 
GeneralMacros Pin
ellllllllie11-Mar-08 9:18
ellllllllie11-Mar-08 9:18 
GeneralRe: Macros Pin
Christian Graus11-Mar-08 9:27
protectorChristian Graus11-Mar-08 9:27 
GeneralRe: Macros Pin
Guffa11-Mar-08 10:31
Guffa11-Mar-08 10:31 
JokeRe: Macros Pin
Christian Graus11-Mar-08 10:56
protectorChristian Graus11-Mar-08 10:56 
Questionsetting win app mail Pin
shawn41411-Mar-08 8:32
shawn41411-Mar-08 8:32 
GeneralRe: setting win app mail Pin
Christian Graus11-Mar-08 8:54
protectorChristian Graus11-Mar-08 8:54 
GeneralRe: setting win app mail Pin
Ravenet11-Mar-08 17:31
Ravenet11-Mar-08 17:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.