C# attributes
E183358
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.
All labels observed (4)
| Label | Occurrences |
|---|---|
| C# attributes canonical | 1 |
| System.Attribute | 1 |
| System.Runtime.InteropServices.DllImportAttribute | 1 |
| System.Xml.Serialization.XmlElementAttribute | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T1612619 — 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: C# attributes Context triple: [ECMA-334, scope, C# attributes]
-
A.
C# programming language
C# is a modern, object-oriented programming language designed for building a wide range of applications on the .NET platform, known for its strong typing, rich standard library, and integration with Visual Studio.
-
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.
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.
-
D.
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.
-
E.
ASP.NET
ASP.NET is a Microsoft web application framework for building dynamic, data-driven websites, services, and applications on the .NET platform.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: C# attributes Target entity description: 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.
-
A.
C# programming language
C# is a modern, object-oriented programming language designed for building a wide range of applications on the .NET platform, known for its strong typing, rich standard library, and integration with Visual Studio.
-
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.
Microsoft Intermediate Language
Microsoft Intermediate Language is the low-level, platform-independent bytecode used by the .NET Framework’s Common Language Runtime as the compilation target for .NET languages before just-in-time compilation to native machine code.
-
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 (46)
| Predicate | Object |
|---|---|
| instanceOf |
metadata annotation mechanism
ⓘ
programming language feature ⓘ |
| accessedWith |
System.Reflection
ⓘ
surface form:
System.Reflection API
|
| appliesTo |
assembly
ⓘ
class ⓘ constructor ⓘ delegate ⓘ enum ⓘ event ⓘ field ⓘ interface ⓘ method ⓘ module ⓘ parameter ⓘ property ⓘ return value ⓘ struct ⓘ |
| baseTypeForCustomAttributes |
C# attributes
self-linksurface differs
ⓘ
surface form:
System.Attribute
|
| canInfluence |
compile-time behavior
ⓘ
runtime behavior ⓘ |
| controls |
code analysis behavior
ⓘ
interoperability behavior ⓘ runtime frameworks behavior ⓘ serialization behavior ⓘ |
| declaredBy | class derived from System.Attribute ⓘ |
| definedIn |
.NET Framework
ⓘ
surface form:
.NET
|
| exampleAttribute |
Microsoft.AspNetCore.Mvc.HttpGetAttribute
ⓘ
NUnit.Framework.TestAttribute ⓘ System.AttributeUsageAttribute ⓘ System.CLSCompliantAttribute ⓘ System.Diagnostics.ConditionalAttribute ⓘ System.ObsoleteAttribute ⓘ C# attributes self-linksurface differs ⓘ
surface form:
System.Runtime.InteropServices.DllImportAttribute
System.Runtime.Serialization.DataContractAttribute ⓘ System.SerializableAttribute ⓘ C# attributes self-linksurface differs ⓘ
surface form:
System.Xml.Serialization.XmlElementAttribute
|
| purpose | attach metadata to program elements ⓘ |
| retrievedVia | reflection ⓘ |
| supportsCustomDefinitions | true ⓘ |
| supportsMultipleOnSameTarget | true (depending on AttributeUsage) ⓘ |
| supportsNamedParameters | true ⓘ |
| supportsPositionalParameters | true ⓘ |
| syntaxExample |
[AttributeUsage(AttributeTargets.Class)]
ⓘ
[Obsolete] ⓘ [Serializable] ⓘ |
| usedInLanguage |
C# programming language
ⓘ
surface form:
C#
|
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: C# attributes Description of subject: 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.
Referenced by (4)
Full triples — surface form annotated when it differs from this entity's canonical label.