如何在VB.NET中键入文字二进制?

问题描述:

如何在VB.NET中键入二进制文字?

How do you type binary literals in VB.NET?

&HFF          // literal Hex -- OK
&b11111111    // literal Binary -- how do I do this?

您可以将其定义为字符串,然后对其进行解析:

You could define it as string and then parse it:

myBin = Convert.ToInt32("1010101010", 2)