Skip to content

M_Cyjb_Text_TokenCollection_1_Contains

CYJB edited this page Mar 23, 2024 · 7 revisions

TokenCollection(T).Contains 方法

确定当前集合是否包含指定对象。

Namespace: Cyjb.Text
Assembly: Cyjb.Compilers.Runtime (in Cyjb.Compilers.Runtime.dll) Version: 1.0.20+d347ea0351607fb282fdf60a5301f9cccb3ab27e

语法

C#

public override bool Contains(
	Token<T> item
)

参数

 

item
Type: Cyjb.Text.Token(T)
要在当前集合中定位的对象。

返回值

Type: Boolean
如果在当前集合中找到 item,则为 true;否则为 false

实现

ICollection(T).Contains(T)

参见

Reference

TokenCollection(T) 类
Cyjb.Text 命名空间

Clone this wiki locally