System.CLSCompliantAttribute
E697438
System.CLSCompliantAttribute is a .NET attribute used to indicate whether code elements comply with the Common Language Specification for cross-language interoperability.
All labels observed (1)
| Label | Occurrences |
|---|---|
| System.CLSCompliantAttribute canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T7896779 — resolving that mention is where its identity was fixed. The disambiguator weighed these candidate entities and picked the highlighted one (or “None”, minting a new entity). This is how homonymy is resolved: the same surface form can point to different entities.
Target entity: System.CLSCompliantAttribute Context triple: [C# attributes, exampleAttribute, System.CLSCompliantAttribute]
-
A.
C# attributes
C# attributes are metadata annotations in the C# programming language that allow developers to attach declarative information to code elements such as classes, methods, and properties, influencing compilation and runtime behavior.
-
B.
Common Type System
The Common Type System is a core component of the .NET architecture that defines how data types are declared, used, and managed across different .NET languages to ensure interoperability and type safety.
-
C.
ECMA-335
ECMA-335 is the international standard that defines the Common Language Infrastructure (CLI), including the core runtime, type system, and metadata used by .NET languages.
-
D.
Common Language Infrastructure
Common Language Infrastructure is an open specification developed by Microsoft that defines a language-independent runtime environment for executing and managing code across multiple programming languages and platforms.
-
E.
Common Language Runtime
The Common Language Runtime is the virtual machine component of Microsoft's .NET platform that manages code execution, memory, security, and other runtime services for .NET applications.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: System.CLSCompliantAttribute Target entity description: System.CLSCompliantAttribute is a .NET attribute used to indicate whether code elements comply with the Common Language Specification for cross-language interoperability.
-
A.
C# attributes
C# attributes are metadata annotations in the C# programming language that allow developers to attach declarative information to code elements such as classes, methods, and properties, influencing compilation and runtime behavior.
-
B.
Common Type System
The Common Type System is a core component of the .NET architecture that defines how data types are declared, used, and managed across different .NET languages to ensure interoperability and type safety.
-
C.
ECMA-335
ECMA-335 is the international standard that defines the Common Language Infrastructure (CLI), including the core runtime, type system, and metadata used by .NET languages.
-
D.
Common Language Infrastructure
Common Language Infrastructure is an open specification developed by Microsoft that defines a language-independent runtime environment for executing and managing code across multiple programming languages and platforms.
-
E.
Common Language Runtime
The Common Language Runtime is the virtual machine component of Microsoft's .NET platform that manages code execution, memory, security, and other runtime services for .NET applications.
- F. None of above. chosen
Statements (49)
| Predicate | Object |
|---|---|
| instanceOf |
System.Attribute subclass
ⓘ
attribute class ⓘ |
| appliesTo |
assemblies
ⓘ
classes ⓘ delegates ⓘ enums ⓘ events ⓘ fields ⓘ interfaces ⓘ methods ⓘ modules ⓘ parameters ⓘ properties ⓘ return values ⓘ structs ⓘ |
| assembly |
System.Runtime
NERFINISHED
ⓘ
mscorlib NERFINISHED ⓘ |
| attributeUsageAllowMultiple | false ⓘ |
| attributeUsageInherited | true ⓘ |
| commonUsage |
[CLSCompliant(false)] on non-compliant APIs
ⓘ
[assembly: CLSCompliant(true)] ⓘ |
| defaultValueSemantics |
false indicates not CLS-compliant
ⓘ
true indicates CLS-compliant ⓘ |
| definedIn | System.Runtime.dll in .NET Core/.NET 5+ NERFINISHED ⓘ |
| documentation | documented on Microsoft Learn ⓘ |
| effect |
causes compiler to check CLS rules
ⓘ
causes compiler to emit CLS compliance warnings ⓘ |
| hasConstructor | CLSCompliantAttribute(bool isCompliant) NERFINISHED ⓘ |
| hasProperty | IsCompliant ⓘ |
| introducedIn | .NET Framework 1.0 NERFINISHED ⓘ |
| isCompileTimeHint | true ⓘ |
| isMetadataAttribute | true ⓘ |
| isRuntimeEnforced | false ⓘ |
| language |
C#
NERFINISHED
ⓘ
VB.NET NERFINISHED ⓘ |
| namespace | System NERFINISHED ⓘ |
| platform |
.NET 5+
ⓘ
.NET Core NERFINISHED ⓘ .NET Framework NERFINISHED ⓘ |
| propertyType | IsCompliant: System.Boolean ⓘ |
| purpose | indicate Common Language Specification compliance ⓘ |
| relatedSpecification | Common Language Specification NERFINISHED ⓘ |
| scopeRule |
applied at assembly level sets default for contained types
ⓘ
applied at type or member level overrides containing scope ⓘ |
| supports | cross-language interoperability ⓘ |
| usedBy |
C# compiler
ⓘ
VB.NET compiler NERFINISHED ⓘ other CLS-aware .NET compilers ⓘ |
| visibilityRule | primarily relevant for publicly exposed APIs ⓘ |
How these facts were elicited
The pipeline generated the facts above by prompting gpt-5.1 with this entity's name + description and the instruction below.
You are a knowledge base construction expert. Given a subject entity and a description of it, return factual statements that you know for the subject as a JSON list of dictionaries(triples), where keys must be "subject", "predicate" and "object". The number of facts may be very high, between 25 to 50 or more, for very popular subjects. For less popular subjects, the number of facts can be very low, like 5 or 10. # Requirements - If you don't know the subject at all, return an empty list. - If the subject is not a named entity, return an empty list. - Include at least one triple where predicate is "instanceOf". - Do not get too wordy. - Separate several objects into multiple triples with one object.
Subject: System.CLSCompliantAttribute Description of subject: System.CLSCompliantAttribute is a .NET attribute used to indicate whether code elements comply with the Common Language Specification for cross-language interoperability.
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.