Table of Contents

Struct Region

Namespace
HeroKit.Globalization
Assembly
HeroKit.dll

A first-level administrative region of a country, such as a Turkish province.

public readonly record struct Region : IEquatable<Region>
Implements
Inherited Members
Extension Methods

Constructors

Region(int, string)

A first-level administrative region of a country, such as a Turkish province.

public Region(int Code, string Name)

Parameters

Code int

The official region code, for example the Turkish plate code 34 for İstanbul or the FIPS code 6 for California.

Name string

The name of the region in the country's language.

Properties

Abbreviation

Gets the short letter code, for example "CA" for California, or null.

public string? Abbreviation { get; init; }

Property Value

string

Code

The official region code, for example the Turkish plate code 34 for İstanbul or the FIPS code 6 for California.

public int Code { get; init; }

Property Value

int

Name

The name of the region in the country's language.

public string Name { get; init; }

Property Value

string