T_Cyjb_UniqueValue_1 - CYJB/Cyjb GitHub Wiki

UniqueValue(TValue) 结构

用于需要获取唯一值的情况。

Namespace: Cyjb
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public struct UniqueValue<TValue>

类型参数

 

TValue
唯一值的类型。
  The UniqueValue(TValue) type exposes the following members.

构造函数

 

名称 说明
公共方法 UniqueValue(TValue)() 初始化 UniqueValue(TValue) 类的新实例。
公共方法 UniqueValue(TValue)(IEqualityComparer(TValue)) 使用指定的比较器初始化 UniqueValue(TValue) 类的新实例。
公共方法 UniqueValue(TValue)(TValue) 使用指定的初始值初始化 UniqueValue(TValue) 类的新实例。
公共方法 UniqueValue(TValue)(TValue, IEqualityComparer(TValue)) 使用指定的初始值和比较器初始化 UniqueValue(TValue) 类的新实例。
  Back to Top

属性

 

名称 说明
公共属性 IsAmbig 获取被设置的值是否是冲突的。
公共属性 IsEmpty 获取是否还未设置值。
公共属性 IsUnique 获取被设置的值是否是唯一的。
公共属性 Value 获取或设置唯一的值。
  Back to Top

方法

 

名称 说明
公共方法 Equals Indicates whether this instance and a specified object are equal. (继承自 ValueType。)
公共方法 GetHashCode Returns the hash code for this instance. (继承自 ValueType。)
公共方法 GetType Gets the Type of the current instance. (继承自 Object。)
公共方法 Reset 将值重置为未设置状态。
公共方法 ToString 返回当前对象的字符串表示形式。 (重写 ValueType.ToString().)
  Back to Top

参见

Reference

Cyjb 命名空间

⚠️ **GitHub.com Fallback** ⚠️