是的。(在C#或VB.Net过法律? [英] Is .( ever legal in C# or VB.Net?

查看:93
本文介绍了是的。(在C#或VB.Net过法律?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

能否序列曾经出现在C#或VB.Net代码?结果
(而不是在一个字符串,注释或XML文本, 修改:或预处理指令)

Can the sequence .( ever appear in C# or VB.Net code?
(Not in a string, comment, or XML literal, EDIT: or preprocessor directive)

我有理由相信答案是否定的,但我想,以确保

I'm reasonably certain that the answer is no, but I'd like to make sure.

推荐答案

这是 出现在语法是:

real-literal:
    decimal-digits   .   decimal-digits ...
    .   decimal-digits ...

namespace-or-type-name:
    namespace-or-type-name   .   identifier ...


member-access:
    primary-expression   .   identifier ...
    predefined-type   .   identifier ...

qualified-alias-member   .   identifier ...

base-access:
    base   .   identifier

unbound-type-name:
    unbound-type-name   .   identifier

qualified-identifier: 
    qualified-identifier   .   identifier

member-name:
    interface-type   .   identifier

indexer-declarator:
    type   interface-type   .   this   



(将...意味着我已经省略了产生式规则的其余部分)。在没有任何这些案件是一个有效期为是后跟数字,一个有效的标识符或关键字这个

(The ... means I have elided the remainder of the production rule.) In none of these cases is a .( valid as . is either followed by digits, a valid identifier, or the keyword this.

这篇关于是的。(在C#或VB.Net过法律?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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