using System.Collections.Generic;
public static void Main()
var objects = SomeObject.Create(20);
foreach (var obj in objects)
var splitText = obj.SomeValue.Split('/');
var firstPart = splitText.Length > 0 ? splitText[0] : "";
var secondPart = splitText.Length > 1 ? splitText[1] : "";
Console.WriteLine($"First Part of Object {obj.ID} is {firstPart}");
Console.WriteLine($"Second Part is Object {obj.ID} is {secondPart}");
public int ID {get; set;}
public string SomeValue {get; set;}
public static List<SomeObject> Create(int howMany)
var result = new List<SomeObject>();
for(int i = 1; i <= howMany; i++)
result.Add(new SomeObject()
SomeValue = $"{i}{i + 1}{i + 2}/{i + 4}{i + 5}{i + 6}"