Even in C++ a great many coding standards dictate the use of all upper case for Preprocessor "constants" (ie #define), but the use of MixedCase for POD which is declare4d as "const".
Printable View
i think so....because he did not asked again.
@TheCPUWizard: are you also agree that in C# it is not convention to have constants all upper case?
Agreed
yes, i also noticed that in MSDN microsoft has used camelCase for constants but it was more distinguishable for me to have it all uppercase and it does not conflict with any other convention; so i am confused!
what is the path you used....paste it here.
"C:\Test"
If this value is hardcoded, try "C:\\Test" or @"C:\Test".
When I wrote "C:\\Test" in the settings, the path returned in
DirectoryInfo di =new DirectoryInfo(path);
is "\"C:\\\\Test\" and when it's @"C:\Test", it returns "@\"C:\\Test\""
The error is 'Illegal characters in path.'
Thanks
where is setting?
just test: "c:\test"
Here it is!
remove the quotations around the c:\test