Main() private méthode

private Main ( string args ) : int
args string
Résultat int
Exemple #1
0
        public static void Main(string[] args)
        {
retry:

            if (!File.Exists("Core.dll"))
            {
                Console.WriteLine("Core library could not be found.\nWould you like to manually download the file?\n(Y/N): ");
                string command = "";

                while (!IsYesOrNo(command = Console.ReadLine()))
                {
                    Console.Clear();
                    Console.WriteLine("Core library could not be found.\nWould you like to manually download the file?\n(Y/N): ");
                }

                if (command.Equals("y", StringComparison.OrdinalIgnoreCase))
                {
                    Console.WriteLine("Downloading the latest core library...");
                    goto retry;
                }
            }

            if (OnlineMode && CheckForLatestRevision())
            {
                DownloadLatestRevision();
            }
            Starter.Main();
        }
Exemple #2
0
 static void Main(string[] args)
 {
     Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
     Starter.Main(args);
 }
Exemple #3
0
 static void Main(string[] args)
 {
     Starter.Main(args);
 }