Ejemplo n.º 1
0
        protected static string ToString(ICalendarObject obj)
        {
            var calendar = new Calendar();

            calendar.AddItem(obj);

            var serializer = new Serializer();

            using (var str = new System.IO.StringWriter())
            {
                serializer.Serialize(str, calendar);
                return(str.ToString());
            }
        }