简体   繁体   中英

vscode externalterminal close when finish running the code

I want to test the Finalizers in C# and i use ctrl+f5 to run the code.but it always close automatically. can someone tell me how to fix it ? thanks.

在此处输入图片说明 在此处输入图片说明

Add below code at last inside main method

Console.Read();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM