C#: Nonzero-based arrays are not CLS-compliant

后端 未结 4 1787
青春惊慌失措
青春惊慌失措 2021-01-02 06:24

I am currently reading Albahari\'s C# 3.0 in a Nutshell and on pg. 241, whilst talking about Array indexing, he says this:

Nonzero-based arr

4条回答
  •  星月不相逢
    2021-01-02 07:13

    CLS compliance is mostly about making sure that your code is as broadly compatible with other languages as possible. It includes things like not exposing public members which differ only by case (which would confuse VB, which is case-insensitive). See this MSDN article for more information, along with the common language specification itself.

提交回复
热议问题