Exemple #1
0
        private static void ListReferencedFileNames(string fileName)
        {
            Simulations file = FileFormat.ReadFromFile <Simulations>(fileName, e => throw e, false);

            foreach (var referencedFileName in file.FindAllReferencedFiles())
            {
                Console.WriteLine(referencedFileName);
            }
        }
Exemple #2
0
        private static void ListReferencedFileNames(string fileName)
        {
            Simulations file = FileFormat.ReadFromFile <Simulations>(fileName, out List <Exception> errors);

            if (errors != null && errors.Count > 0)
            {
                throw errors[0];
            }

            foreach (var referencedFileName in file.FindAllReferencedFiles())
            {
                Console.WriteLine(referencedFileName);
            }
        }