此语法功能的正式名称是什么?
每行末尾的角色名字是什么?
Dim _int As Integer = 1I
Dim _short As Short = 1S
Dim _long As Long = 1L
Dim _single As Single = 1.0F
Dim _double As Decimal = 1D
我一直将这些称为“类型说明符”。我认为这是不正确的,因为我无法找到使用该术语的官方文档。我想知道其他可用的术语,但在我的搜索中找不到合适的术语。
What is the name of the character at the end of each of these lines?
Dim _int As Integer = 1I
Dim _short As Short = 1S
Dim _long As Long = 1L
Dim _single As Single = 1.0F
Dim _double As Decimal = 1D
I've always called these "type specifiers". I assume that's incorrect as I'm unable to find the official documentation using this term. I would like to know what others are available but can't find the right term to use in my search.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它称为类型后缀。
It's called a type suffix.
根据 VB.NET 中的文档,它们被称为“文字类型字符” 。请参阅“强制文字类型”部分。
According to the documentation in VB.NET they are called "literal type characters". See the section on "forced literal types".
根据MSDN,C# 称为:
类型后缀
According to MSDN in C# are called:
Type suffix