Sandeep Ch

Sandeep Ch

  • 1.3k
  • 431
  • 4.8k

System.Void cannot be used from C#

Aug 29 2016 1:50 AM
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)