开发者

Is there a way to create a null value for .NET outside C#? [closed]

This question is unlikely to h开发者_运维技巧elp any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

I am using the .NET support in a 3rd party imaging application where it allows one to use .NET assemblies. The only catch is you have to call/create things using the fully qualified name, for instance:

NewDotNetObject "System.Object";
NewDotNetObject "System.Drawing.Color" 1 2 3;
(NewDotNetMethodCall "System.Math").Abs -45;
...

I am trying to use a method where I need to pass a null value. But I don't know the fully qualified name for null.

Can a null value be created this way?


Don't know if that is the right for you, but there is System.DBNull which represents no data.

Or can you use null pointers?

System.IntPtr.Zero
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜