String Builder
-
Hi thanks for the reply Actually i have an application which will recieve messages from some other application.It can happen at any time.Now i have a recieve method for this purpose..but i dont want to do any operations as soon as i recieve any id but i want it to be used later .So inorder to not loose the incoming id, i decided to used string builder so that i can append one by one the id's which are coming..but now if i want to extract it or split it,,i dont have any split method in string builder ,its only in string ..so what do i need to do. Hope i am clear.
Regards DilipRam
Then it is as I said:
string [] ids = strIncomingEventID.ToString().Split(...);
You can also do this if it is easier for you:string allids = strIncomingEventID.ToString(); string [] ids = allids.Split(...);
TheToString()
method of the StringBuilder class returns a variable with type string. If you're using Visual Studio, try putting a "." afterToString()
and you'll see in intellisense thatSplit
will come up in the list. (PS: for you info I put the "..." in Split because it is an overloaded method, view the signature on MSDN for more info on which arguments the Split method expects.) hope this helps.V.
Stop smoking so you can: Enjoy longer the money you save. Moviereview Archive