Пример #1
0
        public virtual MenuFile ReadMenuFile
        (
            [NotNull] FileSpecification fileSpecification
        )
        {
            Sure.NotNull(fileSpecification, nameof(fileSpecification));

            MenuFile result = null;

            string text = ReadFile(fileSpecification);

            if (!string.IsNullOrEmpty(text))
            {
                StringReader reader = new StringReader(text);
                result = MenuFile.ParseStream(reader);
            }

            return(result);
        }