Class DividerModuleBuilder
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
用来构建 DividerModule 模块的构建器。
public class DividerModuleBuilder : IModuleBuilder, IEquatable<DividerModuleBuilder>, IEquatable<IModuleBuilder>
- Inheritance
-
DividerModuleBuilder
- Implements
- Inherited Members
Constructors
DividerModuleBuilder()
初始化一个 DividerModuleBuilder 类的新实例。
public DividerModuleBuilder()
Properties
Type
获取此构建器构建的模块的类型。
public ModuleType Type { get; }
Property Value
Methods
Build()
构建当前构建器为一个 DividerModule 对象。
public DividerModule Build()
Returns
- DividerModule
由当前构建器表示的属性构建的 DividerModule 对象。
Equals(DividerModuleBuilder?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DividerModuleBuilder? dividerModuleBuilder)
Parameters
dividerModuleBuilder
DividerModuleBuilder
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator ==(DividerModuleBuilder?, DividerModuleBuilder?)
判定两个 DividerModuleBuilder 是否相等。
public static bool operator ==(DividerModuleBuilder? left, DividerModuleBuilder? right)
Parameters
left
DividerModuleBuilderright
DividerModuleBuilder
Returns
- bool
如果两个 DividerModuleBuilder 相等,则为
true
;否则为false
。
operator !=(DividerModuleBuilder?, DividerModuleBuilder?)
判定两个 DividerModuleBuilder 是否不相等。
public static bool operator !=(DividerModuleBuilder? left, DividerModuleBuilder? right)
Parameters
left
DividerModuleBuilderright
DividerModuleBuilder
Returns
- bool
如果两个 DividerModuleBuilder 不相等,则为
true
;否则为false
。