TextValuePairTValue Class

表示文本与指定类型的值的一个配对。

Definition

Namespace: QuickAdmin.Common.DTO
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.0.122
C#
public class TextValuePair<TValue>
Inheritance
object    TextValuePairTValue
Derived

Type Parameters

TValue
值的类型。

Constructors

TextValuePairTValue 创建新实例。
TextValuePairTValue(string, TValue) 用指定的文本与值创建新实例。
TextValuePairTValue(string, TValue, object) 用指定的文本与值以及附加数据创建新实例。

Properties

Public Properties

Tag 获取/设置附加数据。
Text 获取/设置文本。
Value 获取/设置对应值。

Methods

Public Methods

Deconstruct(string, TValue) 输出文本与值的解构函数。
Deconstruct(string, TValue, object) 输出文本与值以及附加数据的解构函数。
ToKeyValuePair 将当前实例转为 KeyValuePair<TValue, string>
ToString 返回对本对象的描述字符串。
(Overrides objectToString)

See Also