| |
|
What is a class attribute in .NET?
Class Attributes - Is a kind of property attached with a class. It allows some data
to be attached to a class or method. This data becomes part of the metadata for the class,
and (like other class metadata) can be accessed via reflection. An example of a metadata
attribute is [serializable], which can be attached to a class and means that instances of
the class can be serialized.
[Serializable]
Public Class SampleClass
( ... )
.NET
Languages
Versions
Tools
CLI CTS Metadata CLS IL VES
CLR
Class Library
Managed Class
Assembly ILDASM
Reflection
Assembly Types
Strong Assembly
GAC
GC
IDisposable
Serialization
Code Access Security
Attribute
Thread
Globalization
Generations
COM
| |