Table of Contents

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 = 4

A country or territory - a leaf node in the hierarchy with no children.

IntermediateRegion = 3

An intermediate region that groups subregions (e.g., Latin America and the Caribbean).

Region = 1

A major geographic region or continent (e.g., Africa, Europe, Asia).

Subregion = 2

A subdivision of a region (e.g., Western Europe, Northern Africa).

World = 0

The root node representing the entire World (code "001").

Examples

The following example demonstrates how to use to categorize geographic regions according to the UN M.49 standard.

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.