C
C#•3y ago
Unknown User

Only assignment, call, increment, decrement, await, and new object expressions can be used as a stat

10 Replies
TAXI
TAXI•3y ago
that is the error
Angius
Angius•3y ago
You never invoke the method
x0rld
x0rld•3y ago
it looks like it's a method to call it you need parenthesis after the name https://learn.microsoft.com/en-us/dotnet/api/system.console.beep?view=net-8.0
TAXI
TAXI•3y ago
OH OK i forgot thanks 🤪 @x0rldhow do i close the console without me pressing a key
x0rld
x0rld•3y ago
if you run your exe without using visual studio it will automaticly close it you will not have the message telling you to press a key
TAXI
TAXI•3y ago
ok but im not doing that rn im using visual studio
x0rld
x0rld•3y ago
you can't
TAXI
TAXI•3y ago
i cant?
x0rld
x0rld•3y ago
why would you have your console to close the instant you don't wait for a key to be input in dev ? aie
TAXI
TAXI•3y ago
because why not so there isnt a way to just have the console close by it self

Did you find this page helpful?