General output to console

    0

    1

    lucycodes42

    C# recipes

    The code starts the console application, and then asks the user to press any key to exit. If the user presses a key, the code will exit and the console application will be closed.

    Shortcut: cgo

    Console.WriteLine("Console app started");
    
    
    Console.WriteLine("Press any key to exit...");
    Console.ReadKey(true);
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.