M_Cyjb_PredicateUtil_Or__1_1 - CYJB/Cyjb GitHub Wiki

PredicateUtil.Or(T) 方法 (Predicate(T), Predicate(T)[])

返回要求当前条件与指定条件满足任意一个的条件。

Namespace: Cyjb
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public static Predicate<T> Or<T>(
	this Predicate<T> predicate,
	params Predicate<T>[] others
)

参数

 

predicate
Type: System.Predicate(T)
当前条件。
others
Type: System.Predicate(T)[]
其它条件。

类型参数

 

T
要比较的对象的类型。

返回值

Type: Predicate(T)
返回要求当前条件与指定条件满足任意一个的条件。

备注

在 Visual Basic 和 C# 中,这个方法可以当成为类型Predicate(T)的实例方法来调用。在采用实例方法语法调用这个方法时,请省略第一个参数。请参考 扩展方法 (Visual Basic)扩展方法 (C# 编程指南) 获取更多信息。

Exceptions

 

异常 条件
ArgumentNullException predicatenull
ArgumentNullException othersnull

参见

Reference

PredicateUtil 类
Or 重载
Cyjb 命名空间

⚠️ **GitHub.com Fallback** ⚠️