什么是C#/ CLI标识符的最大长度是多少? [英] What is the maximum length of a C#/CLI identifier?

查看:235
本文介绍了什么是C#/ CLI标识符的最大长度是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

还有哪些限制那里的名字(一个范围内有明显的独特性旁边)?

Which other restrictions are there on names (beside the obvious uniqueness within a scope)?

在哪里的定义?

推荐答案

从ECMA的 PDF -335 ,分区二,第22条,元数据preserves名称字符串,由编译器或code发生器产生,持平。从本质上讲,它把 每个字符串作为不透明斑点。特别是,它preserves情况。该CLI规定了存储在元数据和后续处理由CLI。

From the PDF of ECMA-335, Partition II, section 22, "Metadata preserves name strings, as created by a compiler or code generator, unchanged. Essentially, it treats each string as an opaque blob. In particular, it preserves case. The CLI imposes no limit on the length of names stored in metadata and subsequently processed by the CLI".

如果我读这正确的情况下是正确的那么就没有实际限制在CLR标识符的长度。

If I've read this correctly and the context is correct then there's no actual limit to the length of an identifier in the CLR.

这篇关于什么是C#/ CLI标识符的最大长度是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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