Another void C# question
Have a type in the header files I'm working with called VTVOID it is the type of a struct element and a number of parameters.
In the header file defining types is the line#define VTVOID void
I read in another discussion the void maps to System.Void
however when I p开发者_运维问答lug that into the C# code I get the error
"System.Void cannot be used in C# -- use typeof(void) to get the void object."
So what type do I plug in?
Jimuse void Foo(){} instead of System.Void Foo(){} if the return vlaue void is meant.
use byte[] instead of void* if you need to have an array of data.
精彩评论