Table of Contents

Class ContainerModule

Namespace
Kook
Assembly
Kook.Net.Core.dll

Represents a container module that can be used in an ICard.

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

Properties

Elements

Gets the elements in this container module.

public ImmutableArray<ImageElement> Elements { get; }

Property Value

ImmutableArray<ImageElement>

An ImmutableArray<T> representing the elements in this container module.

Type

Gets the type of the module.

public ModuleType Type { get; }

Property Value

ModuleType

A ModuleType value that represents the type of the module.

Methods

Equals(ContainerModule?)

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

public bool Equals(ContainerModule? containerModule)

Parameters

containerModule ContainerModule

The ContainerModule to compare with the current ContainerModule.

Returns

bool

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

Equals(object?)

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current ContainerModule.

Returns

bool

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

Remarks

If the object passes is an ContainerModule, Equals(ContainerModule?) will be called to compare the 2 instances.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Operators

operator ==(ContainerModule, ContainerModule)

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

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

Parameters

left ContainerModule
right ContainerModule

Returns

bool

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

operator !=(ContainerModule, ContainerModule)

Determines whether the specified ContainerModule is not equal to the current ContainerModule.

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

Parameters

left ContainerModule
right ContainerModule

Returns

bool

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