Table of Contents

Class ContextModule

Namespace
Kook
Assembly
Kook.Net.Core.dll

备注模块,可用于 ICard 中。

public class ContextModule : IModule, IEquatable<ContextModule>, IEquatable<IModule>
Inheritance
ContextModule
Implements
Inherited Members
Extension Methods

Properties

Elements

获取模块的元素。

public ImmutableArray<IElement> Elements { get; }

Property Value

ImmutableArray<IElement>

Type

获取模块的类型。

public ModuleType Type { get; }

Property Value

ModuleType

Methods

Equals(ContextModule?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ContextModule? contextModule)

Parameters

contextModule ContextModule

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Operators

operator ==(ContextModule, ContextModule)

判定两个 ContextModule 是否相等。

public static bool operator ==(ContextModule left, ContextModule right)

Parameters

left ContextModule
right ContextModule

Returns

bool

如果两个 ContextModule 相等,则为 true;否则为 false

operator !=(ContextModule, ContextModule)

判定两个 ContextModule 是否不相等。

public static bool operator !=(ContextModule left, ContextModule right)

Parameters

left ContextModule
right ContextModule

Returns

bool

如果两个 ContextModule 不相等,则为 true;否则为 false