using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
///
/// 有效性验证接口定义
/// 传值进去,检测是否有效
///
public interface IValidityProvider
{
bool IsValid(object obj);
Task IsValidAsync(object obj);
}
///
/// 有效性验证接口的泛型定义
///
/// 泛型
public interface IValidityProvider:IValidityProvider
{
bool IsValid(T obj);
Task IsValidAsync();
}