Table of Contents

Class Tag<TKey, TValue>

Namespace
Kook
Assembly
Kook.Net.Core.dll

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

public class Tag<TKey, TValue> : ITag where TKey : IEquatable<TKey> where TValue : IEntity<TKey>

Type Parameters

TKey
TValue
Inheritance
Tag<TKey, TValue>
Implements
Inherited Members
Extension Methods

Properties

Index

获取消息中标签的位置。

public int Index { get; }

Property Value

int

Key

获取标签的键。

public TKey Key { get; }

Property Value

TKey

Length

获取标签的长度。

public int Length { get; }

Property Value

int

Type

获取标签的类型。

public TagType Type { get; }

Property Value

TagType

Value

获取标签的键。

public TValue? Value { get; }

Property Value

TValue

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.