ConfigureImmutability(IQuery<INamespace>, ImmutabilityKind)
Configures the immutability of a namespace by supplying an ImmutabilityKind. All types in the namespace will be assigned this immutability kind.
Declaration
public static void ConfigureImmutability(this IQuery<INamespace> query, ImmutabilityKind immutabilityKind)Parameters
| Type | Name | Description |
|---|---|---|
| IQuery<INamespace> | query | A query selecting the namespace(s) to configure. |
| ImmutabilityKind | immutabilityKind | The ImmutabilityKind to assign to types in the namespace. |
ConfigureImmutability(IQuery<INamespace>, IImmutabilityClassifier)
Configures the immutability of a namespace by supplying an IImmutabilityClassifier. The classifier will be used to determine the immutability of each type in the namespace dynamically.
Declaration
public static void ConfigureImmutability(this IQuery<INamespace> query, IImmutabilityClassifier classifier)Parameters
| Type | Name | Description |
|---|---|---|
| IQuery<INamespace> | query | A query selecting the namespace(s) to configure. |
| IImmutabilityClassifier | classifier | The classifier that determines the ImmutabilityKind for each type. |
ConfigureImmutability(IQuery<INamedType>, ImmutabilityKind)
Configures the immutability of a type by supplying an ImmutabilityKind.
Declaration
public static void ConfigureImmutability(this IQuery<INamedType> query, ImmutabilityKind immutabilityKind)Parameters
| Type | Name | Description |
|---|---|---|
| IQuery<INamedType> | query | A query selecting the type(s) to configure. |
| ImmutabilityKind | immutabilityKind | The ImmutabilityKind to assign to the type. |
ConfigureImmutability(IQuery<INamedType>, IImmutabilityClassifier)
Configures the immutability of a type by supplying an IImmutabilityClassifier. The classifier will be used to determine the immutability of the type dynamically, which is useful for generic types whose immutability depends on their type arguments.
Declaration
public static void ConfigureImmutability(this IQuery<INamedType> query, IImmutabilityClassifier classifier)Parameters
| Type | Name | Description |
|---|---|---|
| IQuery<INamedType> | query | A query selecting the type(s) to configure. |
| IImmutabilityClassifier | classifier | The classifier that determines the ImmutabilityKind for each type. |