What is the use of public void in C#?

Julian Hernandez | 2023-05-05 12:30:29 | page views:1757
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Daniel Martinez

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

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.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4