Answers for "vb replace last comma from string"

C#
0

c# list to string replace last comma with and

var test = "Service Control Manager repeated 5 times, Microsoft-Windows-DistributedCOM repeated 2 times, Control Manager repeated 6 times.";
        var lastComma = test.LastIndexOf(',');
        if (lastComma != -1) test = test.Remove(lastComma, 1).Insert(lastComma, " and");
Posted by: Guest on July-22-2020

Code answers related to "vb replace last comma from string"

C# Answers by Framework

Browse Popular Code Answers by Language