You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
423 B
C#

1 year ago
using DS.Module.Core.Attributes;
namespace DS.Module.Core.Reflection;
[IgnoreDependency]
public interface IFinder<out TItem>
{
/// <summary>
/// 根据条件获取
/// </summary>
/// <param name="predicate"></param>
/// <returns></returns>
TItem[] Find(Func<TItem, bool> predicate);
/// <summary>
/// 获取全部
/// </summary>
/// <returns></returns>
TItem[] FindAll();
}