[Solved] Array comparison and sorting to list c#
Try this: // assuming you’ll already have the subjects of the emails var subjects = new List<string> { “ABC / Vesse / 11371503 /C report”, “Value/BEY/11371503/A report” }; var listOfItems = new List<Tuple<string, string, int, string>>(); subjects.ForEach(s => { var splits = s.Split(new[] {“https://stackoverflow.com/”}, StringSplitOptions.RemoveEmptyEntries).Select(x => x.Trim()).ToArray(); // Do proper error checking before the int.Parse … Read more