Skip to content

Commit 306aa64

Browse files
committed
Added IValidator generic interface
1 parent c72a69d commit 306aa64

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace IGLib
6+
{
7+
8+
/// <summary>Represent an object that performs validation of the value of the specified type (<typeparamref name="T"/>)
9+
/// and stores validation results in a <see cref="ValidationResults"/> objects.</summary>
10+
/// <typeparam name="T">Type of values that the currentt validator validates.</typeparam>
11+
public interface IValidator<in T>
12+
{
13+
void Validate(T value, ValidationResults results);
14+
}
15+
16+
}

0 commit comments

Comments
 (0)