ThreadSafetyComment Class
- Namespace
- Kampute.DocToolkit.XmlDoc.Comments
- Assembly
Definition
Represents the documentation content describing the thread safety of a class or struct.
public class ThreadSafetyComment : Comment
- Inheritance
Thread Safety
Constructors
Fields
| Empty | Represents an empty thread safety comment. |
Properties
| IsEmpty | Gets a value indicating whether the comment is without thread-safety information. |
| IsInstanceSafe | Gets a value indicating whether the instance members of the class/struct are thread-safe. |
| IsSafe | Gets a value indicating whether both static and instance members of the class/struct are thread-safe. |
| IsStaticSafe | Gets a value indicating whether the static members of the class/struct are thread-safe. |
Methods
<threadSafety>XML documentation tag, which is used to provide information about the thread safety of a class or struct.Thread safety information is separated into two distinct categories: static member thread safety and instance member thread safety. This distinction is important because a type might have thread-safe static members but non-thread-safe instance members, or vice versa.