Table of Contents

Class Regions

Namespace
RetailForce.Fiscalisation.Implementation.Spain
Assembly
RetailForce.Fiscalisation.Model.dll

helper class to easily map the region to it's name and vice versa

public static class Regions
Inheritance
Regions
Inherited Members

Remarks

It is important to keep the names as strings in case we decide to use the official names of the regions ("Castile-La Mancha" instead of "CastileLaMancha")

Methods

GetRegion(Region)

Gets the region name from the appropriate enum value

public static string GetRegion(Region region)

Parameters

region Region

Returns

string

GetRegionFromName(string)

Gets the enum value from the region name

public static Region? GetRegionFromName(string region)

Parameters

region string

Returns

Region?

Region Enum value or null, if region was not found

GetRegions(IEnumerable<Region>)

Gets the region names from the appropriate enum values

public static IEnumerable<string> GetRegions(IEnumerable<Region> regions)

Parameters

regions IEnumerable<Region>

Returns

IEnumerable<string>