new Char[]
-
HI ., I have a string like "[Hi All]" and now I want to Replace Characters [,], and Space I am Trying to Do it : String.Replace(new Char[] {'[',']'},new Char[] (''}) But This is giving error . Question Can we do it this way , I mean replace array of Characters with Space in one Go. Thanks in advance
Develop2Program & Program2Develop
-
HI ., I have a string like "[Hi All]" and now I want to Replace Characters [,], and Space I am Trying to Do it : String.Replace(new Char[] {'[',']'},new Char[] (''}) But This is giving error . Question Can we do it this way , I mean replace array of Characters with Space in one Go. Thanks in advance
Develop2Program & Program2Develop
What error does it give? Looks to me like you've just got the syntax very very wrong. What you need is something more like:
myString.Replace('x', 'y');
Which would replace all instances of x in that String with y.He who makes a beast out of himself gets rid of the pain of being a man
-
HI ., I have a string like "[Hi All]" and now I want to Replace Characters [,], and Space I am Trying to Do it : String.Replace(new Char[] {'[',']'},new Char[] (''}) But This is giving error . Question Can we do it this way , I mean replace array of Characters with Space in one Go. Thanks in advance
Develop2Program & Program2Develop
-
HI ., I have a string like "[Hi All]" and now I want to Replace Characters [,], and Space I am Trying to Do it : String.Replace(new Char[] {'[',']'},new Char[] (''}) But This is giving error . Question Can we do it this way , I mean replace array of Characters with Space in one Go. Thanks in advance
Develop2Program & Program2Develop
here is code :
string string1 = "[Hi All]";
string1 = string1.Replace("[","").Replace("]","").Replace(" ","");TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y -------------------------------------------------------- 128 bit encrypted signature, crack if you can