Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: Encrypting strings so that Reflector can't get to them Pin
Christian Graus7-Mar-08 21:47
protectorChristian Graus7-Mar-08 21:47 
GeneralRe: Encrypting strings so that Reflector can't get to them Pin
Mark Churchill9-Mar-08 1:44
Mark Churchill9-Mar-08 1:44 
GeneralRe: Encrypting strings so that Reflector can't get to them Pin
Domenic Denicola9-Mar-08 1:50
Domenic Denicola9-Mar-08 1:50 
GeneralCopy paste Pin
D i x y7-Mar-08 18:08
D i x y7-Mar-08 18:08 
GeneralRe: Copy paste Pin
Christian Graus7-Mar-08 21:48
protectorChristian Graus7-Mar-08 21:48 
GeneralThe Immediate Window Pin
Jammer7-Mar-08 12:42
Jammer7-Mar-08 12:42 
GeneralRe: The Immediate Window Pin
Anthony Mushrow7-Mar-08 13:01
professionalAnthony Mushrow7-Mar-08 13:01 
GeneralRe: The Immediate Window Pin
Jammer7-Mar-08 13:15
Jammer7-Mar-08 13:15 
Hi There,

my method is:

public static string CleanTheString(string stringtoclean)
{
    stringtoclean = stringtoclean.Trim();        // trim off the crap
    stringtoclean = stringtoclean.Remove(1, 3);  // ditch the drive letter and ":\"
    stringtoclean.Replace("_", " ");             // replace the underscores
    stringtoclean.Replace("-", " ");             // replace the hyphens
    System.Diagnostics.Debug.WriteLine(stringtoclean);

    return stringtoclean;
}


but doing this;

?CleanTheString(@"G:\The_string") ends up with this error:

The name 'CleanTheString' does not exist in the current context.

I tried removing the 'public' from the constructor and that doesn't change the result. Also I keep reading that intellisense should work in here but that doesn't work for me either.

Shame, it seems like this window could be seriously useful if I could only work it out.

Any ideas?

Jammer

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

GeneralRe: The Immediate Window Pin
J$7-Mar-08 13:49
J$7-Mar-08 13:49 
GeneralRe: The Immediate Window Pin
Jammer7-Mar-08 13:54
Jammer7-Mar-08 13:54 
GeneralRe: The Immediate Window Pin
J$7-Mar-08 14:04
J$7-Mar-08 14:04 
GeneralRe: The Immediate Window Pin
Jammer7-Mar-08 14:10
Jammer7-Mar-08 14:10 
GeneralRe: The Immediate Window Pin
Jammer7-Mar-08 14:05
Jammer7-Mar-08 14:05 
GeneralNet.Sockets - Internet to LAN Connection Exception... Pin
Trapper-Hell7-Mar-08 12:33
Trapper-Hell7-Mar-08 12:33 
GeneralRe: Net.Sockets - Internet to LAN Connection Exception... Pin
Anthony Mushrow7-Mar-08 13:04
professionalAnthony Mushrow7-Mar-08 13:04 
GeneralCustom style on a Form Pin
nike_arh7-Mar-08 12:27
nike_arh7-Mar-08 12:27 
GeneralRe: Custom style on a Form Pin
Christian Graus7-Mar-08 21:49
protectorChristian Graus7-Mar-08 21:49 
GeneralRe: Custom style on a Form Pin
nike_arh8-Mar-08 4:29
nike_arh8-Mar-08 4:29 
QuestionUsing a Dictionary, Generic List or a good old fashioned Array??? Pin
Jammer7-Mar-08 9:30
Jammer7-Mar-08 9:30 
GeneralRe: Using a Dictionary, Generic List or a good old fashioned Array??? Pin
Pete O'Hanlon7-Mar-08 9:44
mvePete O'Hanlon7-Mar-08 9:44 
GeneralRe: Using a Dictionary, Generic List or a good old fashioned Array??? Pin
Jammer7-Mar-08 10:02
Jammer7-Mar-08 10:02 
GeneralRe: Using a Dictionary, Generic List or a good old fashioned Array??? Pin
Pete O'Hanlon7-Mar-08 10:04
mvePete O'Hanlon7-Mar-08 10:04 
GeneralRe: Using a Dictionary, Generic List or a good old fashioned Array??? Pin
Jammer7-Mar-08 10:23
Jammer7-Mar-08 10:23 
GeneralRe: Using a Dictionary, Generic List or a good old fashioned Array??? Pin
Luc Pattyn7-Mar-08 10:40
sitebuilderLuc Pattyn7-Mar-08 10:40 
GeneralRe: Using a Dictionary, Generic List or a good old fashioned Array??? Pin
Jammer7-Mar-08 10:42
Jammer7-Mar-08 10:42 

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.