开发者

Another void C# question

开发者 https://www.devze.com 2022-12-25 05:40 出处:网络
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.

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

精彩评论

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