Source code of the tutorial is available for download.
This example shows how to create an iCalendar feed using C#:
protected void Page_Load(object sender, EventArgs e) { iCalendar iCal = new iCalendar(); DataTable events = Db.LoadEvents(DateTime.Today.AddDays(-7), DateTime.MaxValue); foreach (DataRow dr in events.Rows) { Event evt = iCal.Create<Event>(); evt.Start = new iCalDateTime((DateTime) dr["EventStart"]); evt.End = new iCalDateTime((DateTime) dr["EventEnd"]); evt.Description = (string)dr["EventName"]; } iCalendarSerializer serializer = new iCalendarSerializer(); string output = serializer.SerializeToString(iCal); Response.ContentType = "text/calendar"; Response.Write(output); Response.End(); }