Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Assume­Immutable­Attribute Class / Assume­Immutable­Attribute Constructor / Assume­Immutable­Attribute Constructor (Type)

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.38.0 (5.0.38.0)
Syntax
C#
public AssumeImmutableAttribute(
	Type targetType
)

Parameters

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