Table of Contents

Class AddressState

Namespace
XENBIT.ResQueServe.Core.Models
Assembly
RQS.Core.dll
public record AddressState : IAddressState, IEquatable<AddressState>
Inheritance
AddressState
Implements
Inherited Members
Extension Methods

Constructors

AddressState()

public AddressState()

AddressState(AddressState)

[SetsRequiredMembers]
protected AddressState(AddressState original)

Parameters

original AddressState

Properties

AddressPackageId

public int AddressPackageId { get; set; }

Property Value

int

Country

The country to which this state belongs. The Country class encapsulates details like the country's name, its ISO codes, and other pertinent information.

public Country Country { get; set; }

Property Value

Country

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

StateId

public int StateId { get; set; }

Property Value

int

StateName

The name of the state.

public required string StateName { get; set; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(AddressState?)

public virtual bool Equals(AddressState? other)

Parameters

other AddressState

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

ToString(string, string?)

Returns a string that represents the current address based on the specified format.

public string ToString(string format, string? houseNumber = null)

Parameters

format string

Use "s" for short, the "l" format (long) includes additional address components. "td" is also available for "top-down".

houseNumber string

Place the house number inside the address, if applicable.

Returns

string

A string containing the address components based on the specified format.

Operators

operator ==(AddressState?, AddressState?)

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

Parameters

left AddressState
right AddressState

Returns

bool

operator !=(AddressState?, AddressState?)

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

Parameters

left AddressState
right AddressState

Returns

bool