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: 2023.0.3.0 (2023.0.3.0)
C#
public AssumeImmutableAttribute( Type targetType )
Parameters
- targetType
- Type: System.Type
The immutable targetType.