select element after split in c#
string yourstring = "1:2:3";
yourstring .Split(':').AsEnumerable().ElementAt(1);
output : 2
yourstring .Split(':').AsEnumerable().ElementAt(1);
output : 2
Comments
Post a Comment