Exemplo n.º 1
0
        public Month GetByName(string monthName)
        {
            var months = FileSerializer.Deserialize <IEnumerable <Month> >(FileName);

            return(months == null ? null : months.First(m => m.MonthName == monthName));
        }
Exemplo n.º 2
0
        public static IEnumerable <RepositoryUrlToLocalRelativeDirectoryPathMapping> Deserialize(string mappingsTextFilePath)
        {
            var mappings = FileSerializer.Deserialize(mappingsTextFilePath, MappingsTextSerializer.Instance);

            return(mappings);
        }
Exemplo n.º 3
0
        public IEnumerable <Month> GetAll()
        {
            var months = FileSerializer.Deserialize <IEnumerable <Month> >(FileName);

            return(months ?? new ObservableCollection <Month>());
        }