-
Notifications
You must be signed in to change notification settings - Fork 2
/
ICriterionMatcher.cs
27 lines (27 loc) · 1.39 KB
/
ICriterionMatcher.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
namespace Platform.Interfaces
{
/// <summary>
/// <para>Defines a criterion matcher, that contains a specific method for determining whether the argument matches the criterion or not.</para>
/// <para>Определяет объект который проверяет соответствие критерию и содержит конкретный метод для определения, соответствует ли аргумент критерию или нет.</para>
/// </summary>
/// <typeparam name="TArgument">
/// <para>Argument type.</para>
/// <para>Тип аргумента.</para>
/// </typeparam>
public interface ICriterionMatcher<in TArgument>
{
/// <summary>
/// <para>Determines whether the argument matches the criterion.</para>
/// <para>Определяет, соответствует ли аргумент критерию.</para>
/// </summary>
/// <param name="argument">
/// <para>The argument.</para>
/// <para>Аргумент.</para>
/// </param>
/// <returns>
/// <para>A value that determines whether the argument matches the criterion.</para>
/// <para>Значение, определяющие соответствует ли аргумент критерию.</para>
/// </returns>
bool IsMatched(TArgument argument);
}
}