What is the use of public void in C#?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at Facebook, Lives in Menlo Park, CA
void isn't allowed in the parameter list of a method. A method that takes no parameters and returns no value is declared as follows: public void SampleMethod() { // Body of the method. } void is also used in an unsafe context to declare a pointer to an unknown type.
2023-05-07 12:30:29
评论(499)
Helpful(122)
Helpful
Helpful(2)

Zoe Gray
QuesHub.com delivers expert answers and knowledge to you.
void isn't allowed in the parameter list of a method. A method that takes no parameters and returns no value is declared as follows: public void SampleMethod() { // Body of the method. } void is also used in an unsafe context to declare a pointer to an unknown type.