HolidaySetV1.ToRawEntity Method

To Raw Entity.

Namespace: Gamanet.C4.SimpleInterfaces
Assembly: Gamanet.C4.SimpleInterfaces (in Gamanet.C4.SimpleInterfaces.dll) Version: 2026.0.0.242
Syntax
C#
public RawHolidaySetV1 ToRawEntity()

Return Value

RawHolidaySetV1

[Missing <returns> documentation for "M:Gamanet.C4.SimpleInterfaces.HolidaySetV1.ToRawEntity"]

Example
The following example illustrates how to convert HolidaySet to RawHolidaySet
C#
using System;
using Gamanet.C4.SimpleInterfaces;
using System.Collections.Generic;

public class ConvertDocumentInfoToRawDocumentIfo
{
    static void Main()
    {
       // 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

       var rawHolidaySet= holidaySet.ToRawEntity();

       // display data of converted object
       Console.WriteLine(rawHolidaySet.Name);

       // The example displays the following output:

       // WinterHolidays
    }
}
See Also

Reference

HolidaySetV1 Class
Gamanet.C4.SimpleInterfaces Namespace
HolidayV1