-
Notifications
You must be signed in to change notification settings - Fork 0
Izayoi.Data.Packs.ComparableStructPack‐2
IzayoiJiichan edited this page Feb 1, 2025
·
2 revisions
Namespace | Izayoi.Data.Packs |
Assembly | Izayoi.Data.Packs.dll |
Represents a comparable structure pack.
public readonly struct ComparableStructPack<TValue1, TValue2> :
IComparableStructPack<TValue1, TValue2>,
IComparable<ComparableStructPack<TValue1, TValue2>>,
IEquatable<ComparableStructPack<TValue1, TValue2>>
where TValue1 : struct, IComparable<TValue1>, IEquatable<TValue1>
where TValue2 : struct, IComparable<TValue2>, IEquatable<TValue2>
TValue1
TValue2
IComparable<TVable>
IEquatable<TVable>
Object -> ValueType -> ComparableStructPack<TValue1, TValue2>
Name | Summary |
---|---|
ComparableStructPack<TValue1, TValue2>(in TValue1 value1, in TValue2 value2) | Initializes an instance of the ComparableStructPack<TValue1, TValue2> structure to the specified value. |
Name | Type | Summary |
---|---|---|
Value1 | TValue1 | Gets the value1 of the current object. |
Value2 | TValue2 | Gets the value2 of the current object. |
Name | Returns | Summary |
---|---|---|
CompareTo(ComparableStructPack<TValue1, TValue2> other) | int | Compares this instance to a specified ComparableStructPack<TValue1, TValue2> and returns an indication of their relative values. |
CompareTo(IComparableStructPack<TValue1, TValue2> other) | int | Compares this instance to a specified IComparableStructPack<TValue1, TValue2> and returns an indication of their relative values. |
CompareTo(object? other) | int | Compares this instance to a specified object and returns an indication of their relative values. |
Deconstruct(out TValue1 value1, out TValue2 value2) | void | Deconstructs this ComparableStructPack<TValue1, TValue2> instance by value1 and value2. |
Equals(ComparableStructPack<TValue1, TValue2> other) | bool | Indicates whether the current ComparableStructPack<TValue1, TValue2> object is equal to a specified ComparableStructPack<TValue1, TValue2>. |
Equals(IComparableStructPack<TValue1, TValue2> other) | bool | Indicates whether the current IComparableStructPack<TValue1, TValue2> object is equal to a specified ComparableStructPack<TValue1, TValue2>. |
Equals(object? other) | bool | Indicates whether the current ComparableStructPack<TValue1, TValue2> object is equal to a specified object. |
Equals(object? other, IEqualityComparer comparer) | bool | Indicates whether the current ComparableStructPack<TValue1, TValue2> object is equal to a specified object. |
GetHashCode() | string | Returns the hash code for this instance. |
GetHashCode(IEqualityComparer comparer) | string | Returns the hash code for this instance. |
ToString() | string? | Returns the text representation of the value of the current ComparableStructPack<TValue1, TValue2> object. |
Operator | Returns | Left | Right |
---|---|---|---|
== | bool | ComparableStructPack<TValue1, TValue2> | ComparableStructPack<TValue1, TValue2> |
!= | bool | ComparableStructPack<TValue1, TValue2> | ComparableStructPack<TValue1, TValue2> |
< | bool | ComparableStructPack<TValue1, TValue2> | ComparableStructPack<TValue1, TValue2> |
<= | bool | ComparableStructPack<TValue1, TValue2> | ComparableStructPack<TValue1, TValue2> |
> | bool | ComparableStructPack<TValue1, TValue2> | ComparableStructPack<TValue1, TValue2> |
>= | bool | ComparableStructPack<TValue1, TValue2> | ComparableStructPack<TValue1, TValue2> |
Example.ComparableStructPack‐2
Product | Versions |
---|---|
.NET | 8, 9 |
.NET Standard | 2.0, 2.1 |
- Izayoi.Data
- Izayoi.Data.Query
- Izayoi.Data.Repository
- Izayoi.Data.Comparable
- Izayoi.Data.Packs
- Izayoi.Data.TimestampedObjects
- Izayoi.Data.Validation
Examples
- Database
- Map Class
- DbCommandAdapter
- DbDataMapper
- QueryOption
- QueryBuilder
- DbRepository
- Comparable
- Packs
- Timestamped Objects
- DataValidator
FAQ