Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aspose-cloud/f3af97f404d65c862dc0b8847d312324 to your computer and use it in GitHub Desktop.
Save aspose-cloud/f3af97f404d65c862dc0b8847d312324 to your computer and use it in GitHub Desktop.
var calendar = new HierarchicalObject("CALENDAR", null, new List<BaseObject>
{
new PrimitiveObject("LOCATION", null, "location"),
new PrimitiveObject("STARTDATE", null, startDate.ToString("u")),
new PrimitiveObject("ENDDATE", null, endDate.ToString("u")),
new HierarchicalObject("ORGANIZER", null, new List<BaseObject>
{
new PrimitiveObject("ADDRESS", null, "organizer@aspose.com"),
new PrimitiveObject("DISPLAYNAME", null, "Organizer Name")
}),
new HierarchicalObject("ATTENDEES", null, new List<BaseObject>
{
new IndexedHierarchicalObject("ATTENDEE", null, 0, new List<BaseObject>
{
new PrimitiveObject("ADDRESS", null, "attendee@aspose.com"),
new PrimitiveObject("DISPLAYNAME", null, "Attendee Name")
})
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment