Click here to Skip to main content
15,885,874 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what is the purpose of Split('^') in C sharp
Posted
Comments
arti s.v 6-Sep-12 2:00am    
Thank u all..i got the answer..
Prasad_Kulkarni 6-Sep-12 2:15am    
Glad it helps!
Your're welcome..

 
Share this answer
 
Split separates strings. This method handles splitting upon string and character delimiters.

MSDN[^]: Split returns a string array that contains the substrings in this string that are delimited by elements of a specified Unicode character array. A parameter specifies whether to return empty array elements.

Say if your input string is "A,B,C" you split on the comma to get an array of: "A" "B" "C".

Get some examples and detailed description here:
Splitting string in C#[^]
How to use C# string Split[^]
C# Split[^]

..and everything you can get easily here[^]
 
Share this answer
 
Comments
ridoy 6-Sep-12 1:57am    
Nothing left for me to give an answer..:)...good explanation..+5
Prasad_Kulkarni 6-Sep-12 1:59am    
:) Thank you Ridoy!
Mohamed Mitwalli 6-Sep-12 2:46am    
5+
Prasad_Kulkarni 6-Sep-12 4:57am    
Thank you Mohamed!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900