What does Common Language Specification (CLS) mean?
What does Common Language Specification (CLS) mean?
The Common Language Specification (CLS) is a set of rules and guidelines defined by the .NET Framework to ensure interoperability among different .NET programming languages. It is a subset of the Common Type System (CTS) and specifies the features that all .NET languages must support to be considered CLS-compliant. This allows code written in one CLS-compliant language to be used by another CLS-compliant language seamlessly.
CLSCompliant
attribute in their code. This attribute indicates that the assembly adheres to the CLS rules, making it accessible to other CLS-compliant languages[10][13].A common rule in CLS is that method names should not differ only by case. For instance, having methods Add()
and add()
in the same class would violate CLS because some languages, like VB.NET, are not case-sensitive[1][5].
The Common Language ...
middle
Gợi ý câu hỏi phỏng vấn
Chưa có bình luận nào