using System.Collections.Generic;
public static void Main()
SomeTypeWrapper stw = new SomeTypeWrapper();
Console.WriteLine(stw.GetFromSomeTypeList(0).SomeInt);
public class SomeTypeWrapper
public List<SomeType> SomeTypeList { get; set; } = new List<SomeType>() { };
public SomeType GetFromSomeTypeList(int index)
return SomeTypeList[index];
catch (IndexOutOfRangeException)