M_Cyjb_Collections_ReadOnlyCharSet_Overlaps - CYJB/Cyjb GitHub Wiki
确定当前集合是否与指定的集合重叠。
Namespace: Cyjb.Collections
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6
C#
public override bool Overlaps(
IEnumerable<char> other
)
- other
- Type: System.Collections.Generic.IEnumerable(Char)
要与当前集合进行比较的集合。
Type: Boolean
如果当前集合与 other 至少共享一个通用元素,则为 true
;否则为 false
。
ISet(T).Overlaps(IEnumerable(T))
IReadOnlySet(T).Overlaps(IEnumerable(T))
异常 | 条件 |
---|---|
ArgumentNullException |
other 为 null 。 |