Exemplo n.º 1
0
        public static IICalendarCollection LoadFromFile(Type iCalendarType, string filepath, Encoding encoding)
        {
            ISerializer serializer = new CalendarSerializer();

            serializer.GetService <ISerializationSettings>().CalendarType = iCalendarType;
            return(LoadFromFile(filepath, encoding, serializer));
        }
Exemplo n.º 2
0
        public static IICalendarCollection LoadFromStream(Type iCalendarType, Stream s)
        {
            ISerializer serializer = new CalendarSerializer();

            serializer.GetService <ISerializationSettings>().CalendarType = iCalendarType;
            return(LoadFromStream(s, Encoding.UTF8, serializer));
        }
Exemplo n.º 3
0
        public static IICalendarCollection LoadFromStream(Type iCalendarType, TextReader tr)
        {
            ISerializer serializer = new CalendarSerializer();

            serializer.GetService <ISerializationSettings>().CalendarType = iCalendarType;
            return(LoadFromStream(tr, serializer));
        }