Attributes Applied to System.String
The System.String class has several .NET attributes that convey metadata to the runtime and developers.
| Attribute | Description |
|---|---|
[Serializable] |
Indicates that instances of the String class can be serialized. |
[CLSCompliant(true)] |
Specifies that the class conforms to the Common Language Specification, making it usable across .NET languages. |
[ThreadStatic] |
While not directly applied to the class, this attribute is relevant for static fields that might hold string data per thread. |
[Obsolete(...)] |
Used on specific members rather than the class; included here for completeness. |
For detailed information about each attribute, click the attribute name.