&是什么放; H57代表,我如何为C#的翻译呢? [英] What does &H57 represent and how can I translate it for C#?

查看:92
本文介绍了&是什么放; H57代表,我如何为C#的翻译呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想老VB.NET代码转换成C#和我不知道关于当前行,这意味着什么真的。

I'm trying to convert old VB.NET code into C# and I'm not sure about the current line and what it means really.

VB.NET

Const REQUEST_EFI As Byte = &H57

这会不会在C#是什么?我想:

What would this be in c#? I tried:

const byte request_efi = &H57;



但它说

But it says

H57不是当前
上下文的一部分

"H57 is not part of the current context".

首先,是如何与放大器。 H57字节?第二,它似乎与放大器;运营商在从串联此背景下留出不同的表现。三是明显的,如何赫克我重新写这个的C#?大声笑。谢谢!

First of all, how is &H57 a byte? Second, it seems that the & operator has a different representation in this context aside from concatenation. Third obviously being, how the heck do I re-write this for C#? lol. Thanks!

推荐答案

我想这是一个十六进制数。对于语法将 0×57 在C#。

I guess it is a hexadecimal number. The syntax for that would be 0x57 in C#.

这篇关于&是什么放; H57代表,我如何为C#的翻译呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆