HolidaySetV1 Constructor

Initializes a new instance of the HolidaySetV1 class.

Namespace: Gamanet.C4.SimpleInterfaces
Assembly: Gamanet.C4.SimpleInterfaces (in Gamanet.C4.SimpleInterfaces.dll) Version: 2026.0.0.242
Syntax
C#
public HolidaySetV1(
	Guid id
)

Parameters

id  Guid
The identifier.
Example
The following example illustrates how to create HolidaySet
C#
using System;
using Gamanet.C4.SimpleInterfaces;
using System.Collections.Generic;

public class CreateHoliday
{
  // create instance of holiday
  var holiday = new Holiday(Guid.NewGuid());
  holiday.Name = "Christmas";
  holiday.Date = DateTime.Parse("12/25/2020");

  // create new instance of holidaySet
  var holidaySet = new HolidaySet(Guid.NewGuid());

  holidaySet.Name = "WinterHolidays"; // holidaySet's name
  holidaySet.Holidays = new List<Holiday> { holiday }; // add holiday to holidaySet
}
See Also

Reference

HolidaySetV1 Class
Gamanet.C4.SimpleInterfaces Namespace
HolidayV1