/// <summary>
 /// Initializes a new instance of the <see cref="VenueCI"/> class
 /// </summary>
 /// <param name="exportable">A <see cref="ExportableVenueCI"/> containing information about a venue</param>
 public VenueCI(ExportableVenueCI exportable)
     : base(exportable)
 {
     _names        = new Dictionary <CultureInfo, string>(exportable.Name);
     _cityNames    = new Dictionary <CultureInfo, string>(exportable.CityNames);
     _countryNames = new Dictionary <CultureInfo, string>(exportable.CountryNames);
     Capacity      = exportable.Capacity;
     Coordinates   = exportable.Coordinates;
     CountryCode   = exportable.CountryCode;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VenueCI"/> class
 /// </summary>
 /// <param name="exportable">A <see cref="ExportableVenueCI"/> containing information about a venue</param>
 public VenueCI(ExportableVenueCI exportable)
     : base(exportable)
 {
     _names        = new Dictionary <CultureInfo, string>(exportable.Name);
     _cityNames    = new Dictionary <CultureInfo, string>(exportable.CityNames);
     _countryNames = new Dictionary <CultureInfo, string>(exportable.CountryNames);
     Capacity      = exportable.Capacity;
     Coordinates   = exportable.Coordinates;
     CountryCode   = exportable.CountryCode;
     State         = exportable.State;
     Course        = exportable.Course?.Select(s => new HoleCI(s));
 }