Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading.​Models Namespace / Immutable­Threading­Model Class

ImmutableThreadingModel Class

The ImmutableThreadingModel class describes a threading model where changes to an object are forbidden after completion of the object constructor. To use the ImmutableThreadingModel, apply the ImmutableAttribute custom attribute to a class.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Threading.ThreadingModel
    PostSharp.Patterns.Threading.Models.ReadOnlyThreadingModel
      PostSharp.Patterns.Threading.Models.ImmutableThreadingModel

Namespace:  PostSharp.Patterns.Threading.Models
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 5.0.48.0 (5.0.48.0)
Syntax
C#
public sealed class ImmutableThreadingModel : ReadOnlyThreadingModel

The ImmutableThreadingModel type exposes the following members.

Properties
  NameDescription
Public propertyIsThreadSafe
Determines whether the threading model is possibly thread safe.
(Inherited from ReadOnlyThreadingModel.)
Methods
  NameDescription
Public methodToString
Returns a string that represents the current object.
(Inherited from ThreadingModel.)
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also