.NET Fiddle

CSharp · Console

/Program.cs

using System;
using System.Collections.Generic;
using System.Linq;

namespace Application
{
   class Application
   {
      private static TypeA typeA;
      private static readonly List<TypeB> listTypeB = new List<TypeB>();
      private static readonly List<TypeC> listTypeC = new List<TypeC>();

      typeA = new TypeA(listTypeB, listTypeC.ToList());
   }
	
   class TypeA
   {
      public TrainTest4(List<TypeB> listB, List<TypeC> listc)
      {
         ListPropertyTypeB = listB;
         ExampleMethodOfClassTypeA(ListPropertyTypeB, listc);
      }
   }
}
;