Table of Contents

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

Code int

The official district code, for example the MERNİS code 1757 for Aladağ.

Name string

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

RegionCode int

The 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

int

Name

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

public string Name { get; init; }

Property Value

string

RegionCode

The Code of the region the district belongs to, for example 1 for Adana.

public int RegionCode { get; init; }

Property Value

int