Build-in attributes
In this chapter you will learn:
Build-in attributes
C# defines three built-in attributes:
- AttributeUsage
- Conditional
- Obsolete
Assembly-Level Attributes
Attribute | Meaning in Life |
---|---|
AssemblyCompanyAttribute | basic company information |
AssemblyCopyrightAttribute | any copyright information |
AssemblyCultureAttribute | information on cultures or languages |
AssemblyDescriptionAttribute | a description of the product |
AssemblyKeyFileAttribute | the name of the file containing the key pair |
AssemblyOperatingSystemAttribute | operating system |
AssemblyProcessorAttribute | processors to support |
AssemblyProductAttribute | Provides product information |
AssemblyTrademarkAttribute | Provides trademark information |
AssemblyVersionAttribute | assembly's version information, in the format <major.minor.build.revision> |
Next chapter...
What you will learn in the next chapter:
- How to use obsolete attribute
- Obsolete attribute with error message and compiler error
- Generate a compilation error rather than a warning
Home » C# Tutorial » Attribute