예제 #1
0
 protected virtual void Initialize(BinaryCarsFile from)
 {
     from.ThrowArgumentNullExceptionIfNull();
     Cars = new CarsCollection <XmlCar>(from.Cars.Convert(new Mapper <BinaryCar, XmlCar>()));
 }
 public BinaryCarsFile(CarsCollection <BinaryCar> cars) : base(cars)
 {
     SunbscribeCarsCollectionEvents();
 }
예제 #3
0
 public XmlCarsFile(CarsCollection <XmlCar> cars) : base(cars)
 {
 }
예제 #4
0
 public BaseCarsFile(CarsCollection <TCar> cars)
 {
     cars.ThrowArgumentNullExceptionIfNull();
     carsField = cars;
 }