private static TWrapper CreateWrapper(IPartialHalfTour partialHalfTour, IHouseholdDayWrapper householdDayWrapper) { Type type = typeof(TWrapper); object instance = Activator.CreateInstance(type, partialHalfTour, householdDayWrapper); return((TWrapper)instance); }
public PartialHalfTourWrapper(IPartialHalfTour partialHalfTour, IHouseholdDayWrapper householdDayWrapper) { _partialHalfTour = partialHalfTour; _exporter = Global .ContainerDaySim.GetInstance <IPersistenceFactory <IPartialHalfTour> >() .Exporter; // relations properties Household = householdDayWrapper.Household; HouseholdDay = householdDayWrapper; }
IPartialHalfTourWrapper IPartialHalfTourCreator.CreateWrapper(IPartialHalfTour partialHalfTour, IHouseholdDayWrapper householdDayWrapper) { return(CreateWrapper(partialHalfTour, householdDayWrapper)); }
public PartialHalfTourWrapper(IPartialHalfTour partialHalfTour, IHouseholdDayWrapper householdDayWrapper) : base(partialHalfTour, householdDayWrapper) { _partialHalfTour = (ILDPartialHalfTour)partialHalfTour; }