BitMiracle.VisualStudioConverter.CSScript.Converter.Execute C# (CSharp) Method

Execute() public method

public Execute ( ) : void
return void
        public void Execute()
        {
            if (!File.Exists(m_options.PathToSolution))
                throw new FileNotFoundException("Solution file not found");

            processSolution();
        }

Usage Example

        public static int Main(params string[] args)
        {
            try
            {
                CommandLineArguments arguments = new CommandLineArguments(args);
                Options options = createOptions(arguments);
                if (options == null)
                {
                    printUsage();
                    return 1;
                }

                Converter converter = new Converter(options);
                converter.Execute();

                return 0;
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                Console.WriteLine(e.StackTrace);
                return 1;
            }
        }