Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net 如何强制特定的过载?_Vb.net_Overloading - Fatal编程技术网

Vb.net 如何强制特定的过载?

Vb.net 如何强制特定的过载?,vb.net,overloading,Vb.net,Overloading,我正在使用二进制编写器,我想在文件中写入一个0,我正在执行: _writer.Write(0) 但是当我想让它执行字节操作时,它会向文件中写入一个整数,不只是将字节变量声明为0,正确的方法是什么?\u writer.Write(CByte(0))应该可以做到这一点。你试过强制转换吗?CByte(0)+1,特别是因为VB中有。

我正在使用二进制编写器,我想在文件中写入一个0,我正在执行:

_writer.Write(0)


但是当我想让它执行字节操作时,它会向文件中写入一个整数,不只是将字节变量声明为0,正确的方法是什么?

\u writer.Write(CByte(0))
应该可以做到这一点。

你试过强制转换吗?CByte(0)+1,特别是因为VB中有。