/// <summary>
        /// Read source file and create code snippets
        /// </summary>
        /// <param name="file">source file</param>
        /// <param name="snippetsFolder">Snippets folder</param>
        private void ProcessSourceFile(String file, String snippetsFolder)
        {
            try
            {
                ExampleConverter exConverter = new ExampleConverter();
                int snippetsCreated = exConverter.ProcessExample(file, snippetsFolder);

                snippetsCreatedTotal += snippetsCreated;
                if (snippetsCreated > 0)
                    filesProcessed++;
            }
            catch(Exception ex)
            {
                LogError(file, ex);
            }
        }
Пример #2
0
        /// <summary>
        /// Read source file and create code snippets
        /// </summary>
        /// <param name="file">source file</param>
        /// <param name="snippetsFolder">Snippets folder</param>
        private void ProcessSourceFile(String file, String snippetsFolder)
        {
            try
            {
                ExampleConverter exConverter = new ExampleConverter();
                int snippetsCreated          = exConverter.ProcessExample(file, snippetsFolder);

                snippetsCreatedTotal += snippetsCreated;
                if (snippetsCreated > 0)
                {
                    filesProcessed++;
                }
            }
            catch (Exception ex)
            {
                LogError(file, ex);
            }
        }