Open sandboxFocus

Interface IImmutabilityClassifier

Exposes a method that determines the ImmutabilityKind of a type dynamically. This interface is useful for generic types whose immutability depends on their type arguments.

Namespace: Metalama.Patterns.Immutability.Configuration
Assembly: Metalama.Patterns.Immutability.dll
Syntax
public interface IImmutabilityClassifier : ICompileTimeSerializable
Remarks

Implementations of this interface must be compile-time serializable because they may need to be persisted across compilation steps or project boundaries.

Use ConfigureImmutability(IQuery<INamedType>, IImmutabilityClassifier) to configure a classifier for specific types or namespaces.

Methods

Name Description
GetImmutabilityKind(INamedType)

Returns the ImmutabilityKind of the specified type.

Extension Methods

See Also