Table of Contents

Namespace Cuemon.Extensions.Globalization

Assembly: Cuemon.Extensions.Core.dll

The Cuemon.Extensions.Globalization namespace contains extension methods that complements the Cuemon.Globalization namespace while being an addition to the System.Globalization namespace.

Availability: .NET 8, .NET 7, .NET 6 and .NET Standard 2.0

Complements: Cuemon.Globalization namespace 📘

Extension Methods

Type Ext Methods
CultureInfo ⬇️ UseNationalLanguageSupport

CSharp Example

var danishCultureIcu = CultureInfo("da-dk");
var danishCultureNls = new CultureInfo("da-dk").UseNationalLanguageSupport();

// danishCultureIcu outputs dd.MM.yyyy from danishCultureIcu.DateTimeFormat.ShortDatePattern
// danishCultureNls outputs dd-MM-yyyy from danishCultureNls.DateTimeFormat.ShortDatePattern

Classes

CultureInfoExtensions

Extension methods for the System.Globalization.CultureInfo class.

RegionInfoExtensions

Extension methods for the System.Globalization.RegionInfo class.