Table of Contents

Interface ITypeMatcher

Namespace
Moq
Assembly
Moq.dll

Types that implement this interface represent a criterion against which generic type arguments are matched.

To be used in combination with TypeMatcherAttribute.

public interface ITypeMatcher

Methods

Matches(Type)

Matches the provided type argument against the criterion represented by this type matcher.

bool Matches(Type typeArgument)

Parameters

typeArgument Type

The generic type argument that should be matched.

Returns

bool

true if the provided type argument matched the criterion represented by this instance; otherwise, false.