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