Metalama 1.0 / / Metalama Documentation / Extensions API / Metalama.​Extensions.​Architecture.​Fabrics / Architecture­Verifier­Extensions / With­Types

Method WithTypes

WithTypes(ArchitectureVerifier<ICompilation>, IEnumerable<Type>)

Represents a fluent ArchitectureVerifier<T> that allows to validate code referencing given types. This method can only be used in a ProjectFabric.

Declaration
public static ArchitectureVerifier<INamedType> WithTypes(this ArchitectureVerifier<ICompilation> verifier, IEnumerable<Type> types)
Parameters
Type Name Description
ArchitectureVerifier<ICompilation> verifier

The ArchitectureVerifier<T> returned by Verify(IProjectAmender).

IEnumerable<Type> types

A list of types.

Returns
Type Description
ArchitectureVerifier<INamedType>

WithTypes(ArchitectureVerifier<ICompilation>, Type[])

Represents a fluent ArchitectureVerifier<T> that allows to validate code referencing given types. This method can only be used in a ProjectFabric.

Declaration
public static ArchitectureVerifier<INamedType> WithTypes(this ArchitectureVerifier<ICompilation> verifier, params Type[] types)
Parameters
Type Name Description
ArchitectureVerifier<ICompilation> verifier

The ArchitectureVerifier<T> returned by Verify(IProjectAmender).

Type[] types

A list of types.

Returns
Type Description
ArchitectureVerifier<INamedType>