Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
キーを送信するウィンドウ フォーム アプリケーションを作成しましたが、キーを送信するには次のようにします。
「A」を送信するには、MyFunction(0x41) を書き留める必要があります。0x41 はバイトです。
41 を文字列として取得できますが、それをバイト (この形式 - 0x41) に変換するにはどうすればよいですか?
整数型にキャストできます。
MyFunction((byte)'A');
Convert.ToByteを使用できます