Saturday, June 6, 2015

Split String in C#

String str="Abc.123"
String[] strc=str.Split('.');
Here you can get the value before decimal point and after decimal point.
string firstvalue=strc[0];
string firsttwo=strc[1];

No comments:

Post a Comment