3
Answers

System.Void cannot be used from C#

Ask a question
Sandeep Ch

Sandeep Ch

8y
354
1
Hello Friends,
 
Could you please some one explain why I am getting this compilation error
"System.Void cannot be used from C# -- use typeof(void) to get the void type object"
i have method called
public static Void ArryTypeCasting()
{
//Code 
when i am compiling the program , i am getting Error message "System.Void cannot be used from C# -- use typeof(void) to get the void type object".
 
Thanks in advance.
 
 

Answers (3)