This commit is contained in:
CortexCore
2023-08-11 23:57:37 +08:00
parent 936a94c84b
commit 75889ec34f
149 changed files with 6524 additions and 1043 deletions

View File

@@ -0,0 +1,22 @@
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
/// <summary>
/// 有效性验证接口定义
/// <para>传值进去,检测是否有效</para>
/// </summary>
public interface IValidityProvider
{
bool IsValid(object obj);
Task<bool> IsValidAsync(object obj);
}
/// <summary>
/// 有效性验证接口的泛型定义
/// </summary>
/// <typeparam name="T">泛型</typeparam>
public interface IValidityProvider<in T>:IValidityProvider
{
bool IsValid(T obj);
Task<bool> IsValidAsync();
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 473be4c63a7ca1843983a5c9b4f0f2e6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: