Open sandboxFocus

Constructor AssumeImmutableAttribute

AssumeImmutableAttribute()

Initializes a new instance of the AssumeImmutableAttribute class that can be applied to a specific type.

Declaration
public AssumeImmutableAttribute()

AssumeImmutableAttribute(Type)

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

Declaration
public AssumeImmutableAttribute(Type targetType)
Parameters
Type Name Description
Type targetType

The immutable type.