Enum StatisticalRegionKind
- Namespace
- Cuemon.Globalization
- Assembly
- Cuemon.Core.dll
Specifies the kind of a statistical region as defined by the UN M.49 standard.
public enum StatisticalRegionKind
Fields
CountryOrTerritory = 4A country or territory - a leaf node in the hierarchy with no children.
IntermediateRegion = 3An intermediate region that groups subregions (e.g., Latin America and the Caribbean).
Region = 1A major geographic region or continent (e.g., Africa, Europe, Asia).
Subregion = 2A subdivision of a region (e.g., Western Europe, Northern Africa).
World = 0The root node representing the entire World (code "001").
Examples
The following example demonstrates how to use
using System;
using Cuemon.Globalization;
namespace MyApp.Examples;
public class StatisticalRegionKindExample
{
public void Demonstrate()
{
var regionKind = StatisticalRegionKind.CountryOrTerritory;
switch (regionKind)
{
case StatisticalRegionKind.World:
Console.WriteLine("The entire world (code 001).");
break;
case StatisticalRegionKind.Region:
Console.WriteLine("A major geographic region or continent.");
break;
case StatisticalRegionKind.Subregion:
Console.WriteLine("A subdivision of a region (e.g., Western Europe).");
break;
case StatisticalRegionKind.IntermediateRegion:
Console.WriteLine("An intermediate grouping of subregions.");
break;
case StatisticalRegionKind.CountryOrTerritory:
Console.WriteLine("An individual country or territory (leaf node).");
break;
}}
}
Remarks
UN M.49 defines a hierarchical structure of geographic regions for statistical use. This enum represents the different levels in that hierarchy, from World down to individual countries.