T_Cyjb_UniqueValue_1 - CYJB/Cyjb GitHub Wiki
用于需要获取唯一值的情况。
Namespace: Cyjb
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6
C#
public struct UniqueValue<TValue>
- TValue
- 唯一值的类型。
名称 | 说明 | |
---|---|---|
![]() |
UniqueValue(TValue)() | 初始化 UniqueValue(TValue) 类的新实例。 |
![]() |
UniqueValue(TValue)(IEqualityComparer(TValue)) | 使用指定的比较器初始化 UniqueValue(TValue) 类的新实例。 |
![]() |
UniqueValue(TValue)(TValue) | 使用指定的初始值初始化 UniqueValue(TValue) 类的新实例。 |
![]() |
UniqueValue(TValue)(TValue, IEqualityComparer(TValue)) | 使用指定的初始值和比较器初始化 UniqueValue(TValue) 类的新实例。 |
名称 | 说明 | |
---|---|---|
![]() |
IsAmbig | 获取被设置的值是否是冲突的。 |
![]() |
IsEmpty | 获取是否还未设置值。 |
![]() |
IsUnique | 获取被设置的值是否是唯一的。 |
![]() |
Value | 获取或设置唯一的值。 |
名称 | 说明 | |
---|---|---|
![]() |
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().) |