Thread Safety Class Class
This class demonstrates the threadsafety XML comments element.
Definition
Namespace: XMLCommentsExamples
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
C#
public class ThreadSafetyClassVB
Public Class ThreadSafetyClassC++
public ref class ThreadSafetyClassF#
type ThreadSafetyClass = class end- Inheritance
- Object ThreadSafetyClass
Constructors
| ThreadSafetyClass | Initializes a new instance of the ThreadSafetyClass class |
Methods
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| InstanceMethod | Per the threadsafety XML comments element on the class, the developer has indicated that instance method like this one are not safe for multi-threaded use. |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| StaticMethod | Per the threadsafety XML comments element on the class, the developer has indicated that static methods like this one are safe for multi-threaded use. |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.