This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

AssumeImmutableAttribute Constructor (Type)

Initializes a new instance of the AssumeImmutableAttribute custom attribute that can be applied to an assembly, passing the immutable as a constructor argument. This constructor allows to add assumptions for types that are not defined in this current assembly.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.33.0 (5.0.33.0)
Syntax
C#
public AssumeImmutableAttribute(
	Type targetType
)

Parameters

targetType
Type: System.Type
The immutable targetType.
See Also