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
CodeintThe official region code, for example the Turkish plate code 34 for İstanbul or the FIPS code 6 for California.
NamestringThe 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
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
Name
The name of the region in the country's language.
public string Name { get; init; }