Class SplitPartIndex

Namespace
Cratis.Chronicle.Events.Migrations
Assembly
Cratis.Chronicle.dll

Represents the zero-based index of the part to extract when splitting a property value.

public record SplitPartIndex : ConceptAs<int>, IComparable<ConceptAs<int>>, IComparable<int>, IComparable, IEquatable<ConceptAs<int>>, IEquatable<SplitPartIndex>
Inheritance
SplitPartIndex
Implements
Inherited Members
Extension Methods

Constructors

SplitPartIndex(SplitPartIndex)

protected SplitPartIndex(SplitPartIndex original)

Parameters

original SplitPartIndex

SplitPartIndex(int)

Represents the zero-based index of the part to extract when splitting a property value.

public SplitPartIndex(int Value)

Parameters

Value int

Actual value.

Fields

First

Gets the representation of the first part (index 0).

public static readonly SplitPartIndex First

Field Value

SplitPartIndex

Second

Gets the representation of the second part (index 1).

public static readonly SplitPartIndex Second

Field Value

SplitPartIndex

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out int)

public void Deconstruct(out int Value)

Parameters

Value int

Equals(SplitPartIndex?)

public virtual bool Equals(SplitPartIndex? other)

Parameters

other SplitPartIndex

Returns

bool

Equals(ConceptAs<int>?)

public override sealed bool Equals(ConceptAs<int>? other)

Parameters

other ConceptAs<int>

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

Operators

operator ==(SplitPartIndex?, SplitPartIndex?)

public static bool operator ==(SplitPartIndex? left, SplitPartIndex? right)

Parameters

left SplitPartIndex
right SplitPartIndex

Returns

bool

implicit operator int(SplitPartIndex)

Implicitly convert from SplitPartIndex to int.

public static implicit operator int(SplitPartIndex index)

Parameters

index SplitPartIndex

SplitPartIndex to convert from.

Returns

int

implicit operator SplitPartIndex(int)

Implicitly convert from int to SplitPartIndex.

public static implicit operator SplitPartIndex(int index)

Parameters

index int

int to convert from.

Returns

SplitPartIndex

operator !=(SplitPartIndex?, SplitPartIndex?)

public static bool operator !=(SplitPartIndex? left, SplitPartIndex? right)

Parameters

left SplitPartIndex
right SplitPartIndex

Returns

bool