Friday, October 29, 2010

Split a String Seperated With \ , C#

string sSuppName = "A/B/C/D/E";
string[] str1 = sSuppName.Split('/');
  
output     A
              B
              C
              D

string sSuppName = "A\B\C\D\E";
string[] str1 = sSuppName.Split('\\');

output    A
             B
             C
             D

No comments:

Post a Comment

Mat Table Angular

Mat Table in Angular Mat table is used to display data . its a material designed styled data-table . For using Material Table MatTableMo...