I have VB code which I'm converting to C#. I've created a large chunk of the program but I'm stuck at one line of this fuction:
Private Sub Arduino_Write(ByVal Output As String)
If Not IsNothing(networkStream) Then
Dim sendBytes As [Byte]() = Encoding.ASCII.GetBytes(Output)
Dim endByte As [Byte]() = {&HFE}
networkStream.Write(sendBytes, 0, sendBytes.Length)
networkStream.Write(endByte, 0, 1)
Else
MsgBox("ERROR")
End If
End Sub
What I know is endByte is a Byte type array and I don't know what &HFE is and how to convert or typecast it in C#. Can anybody please help me?
&HFEis a hex literal. In C# it translates to0xFE