PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Assume­Immutable­Attribute Class / Assume­Immutable­Attribute Constructor

AssumeImmutableAttribute Constructor

Overload List
  NameDescription
Public methodAssumeImmutableAttribute()
Initializes a new instance of the AssumeImmutableAttribute custom attribute that can be applied to a specific targetType.
Public methodAssumeImmutableAttribute(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.
See Also