[Solved] How to get second values from a string (comma-separated value) in C# [closed]


Use Split(char)

string x = "12,1108,06";
var result = x.Split(',').Skip(1).FirstOrDefault();

or

string x = "12,1108,06";
var result = x.Split(',')[1];

6

solved How to get second values from a string (comma-separated value) in C# [closed]