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
regionRegion
Returns
GetRegionFromName(string)
Gets the enum value from the region name
public static Region? GetRegionFromName(string region)
Parameters
regionstring
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
regionsIEnumerable<Region>