Struct District
- Namespace
- HeroKit.Globalization
- Assembly
- HeroKit.dll
A second-level administrative unit of a country, such as a Turkish district (ilçe).
public readonly record struct District : IEquatable<District>
- Implements
- Inherited Members
- Extension Methods
Constructors
District(int, string, int)
A second-level administrative unit of a country, such as a Turkish district (ilçe).
public District(int Code, string Name, int RegionCode)
Parameters
CodeintThe official district code, for example the MERNİS code 1757 for Aladağ.
NamestringThe name of the district in the country's language.
RegionCodeintThe Code of the region the district belongs to, for example 1 for Adana.
Properties
Code
The official district code, for example the MERNİS code 1757 for Aladağ.
public int Code { get; init; }
Property Value
Name
The name of the district in the country's language.
public string Name { get; init; }
Property Value
RegionCode
The Code of the region the district belongs to, for example 1 for Adana.
public int RegionCode { get; init; }