Is there a way to create a null value for .NET outside C#? [closed]
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
精彩评论