Class AddressState
- Namespace
- XENBIT.ResQueServe.Core.Models
- Assembly
- RQS.Core.dll
public record AddressState : IAddressState, IEquatable<AddressState>
- Inheritance
-
AddressState
- Implements
- Inherited Members
Properties
AddressPackageId
public int AddressPackageId { get; set; }
Property Value
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
StateId
public int StateId { get; set; }
Property Value
StateName
The name of the state.
public required string StateName { get; set; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
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
formatstringUse "s" for short, the "l" format (long) includes additional address components. "td" is also available for "top-down".
houseNumberstringPlace the house number inside the address, if applicable.
Returns
- string
A string containing the address components based on the specified format.