lets take for example i have a string declared:
string master = "1.2.3.4";
which is in the form of:
major.minor.project.build
how do i get a string “major”,”minor”,”project” and “build” assigned separately from the string “master”?
I know we have to do line.split and this is what i have tried:
string[] master = line.Split('.');
string major = master[0];
string minor = master[1];
string project = master[2];
string build = master[3];
Assuming that you want to split the string by
'.'to get major, minor, build etc