开发者

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?

Jim


use 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜