using System.Collections.Generic;
using System.Collections.Immutable;
public readonly IList<int> Trial1;
public TrialClass1(IList<int> trial1){
public IReadOnlyList<int> Trial2 {get; set;}
public static void Main()
List<int> sampleList1 = new List<int>() { 1, 2, 3 };
TrialClass1 trial1 = new TrialClass1(sampleList1);
Console.WriteLine($"{sampleList1[0].ToString()}, {trial1.Trial1[0].ToString()}");
List<int> sampleList2 = new List<int>() { 3, 4, 5 };
TrialClass2 trial2 = new TrialClass2() { Trial2 = sampleList2 };
Console.WriteLine($"{sampleList2[0].ToString()}, {trial2.Trial2[0].ToString()}");
Console.WriteLine($"{sampleList1[3].ToString()}, {trial1.Trial1[3].ToString()}");