CIL 类 和 Methods 的命名规则是什么

What are the naming rules for CIL Classes and Methods

它们与 C# 有何不同?

在 CIL 中,是否有任何标准的方法名称编写方法不会与任何 C# 方法冲突,因为 CIL 名称在 C# 中是非法的?

这样的名称会导致其他 .net 语言(例如 F# 或 Visual Basic)出现问题吗?

C# 中命名规则的一个示例是:Method2 是 C# 中方法的合法名称,但 2Method 是非法方法名称,因为名称不能以数字开头,但是可能包含数字。 CIL有什么命名规则?

我正在编写一个仅供 Il 使用的自动生成方法,我想确保它不会与任何 C# 名称冲突。

要编写可以与任何 .NET 语言互操作的代码,请遵循公共语言规范的指导方针,并确保您公开可见的类型是 "CLS Compliant":

To fully interact with other objects written in any language, objects must expose to callers only those features that are common to all languages. This common set of features is defined by the Common Language Specification (CLS), which is a set of rules that apply to generated assemblies. The Common Language Specification is defined in Partition I, Clauses 7 through 11 of the ECMA-335 Standard: Common Language Infrastructure.

Language Independence and Language-Independent Components

我怀疑您实际上是指 CLS 合规性。这是详细的 here 连同命名规则。最重要的事情似乎是确保两个标识符的不同不仅仅是大小写。