19 lines
415 B
C#
19 lines
415 B
C#
|
namespace FileSearch.Logic.Model.Engine
|
|||
|
{
|
|||
|
public class CriterionBase
|
|||
|
{
|
|||
|
public virtual ICriterionContext BuildContext()
|
|||
|
{
|
|||
|
return null;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public class CriterionBase<TContext> : CriterionBase where TContext : ICriterionContext, new()
|
|||
|
{
|
|||
|
public override ICriterionContext BuildContext()
|
|||
|
{
|
|||
|
return new TContext();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|