get currency symbol/sign
Published: 11. October 2011 | Updated: 11. October 2011License: Microsoft Public License (MS-PL)
Categories: Globalization » Currencies
Tags: C# Globalization
Import namespace
using System.Globalization;
Code
var culture = CultureInfo.GetCultureInfo("en-US"); var regionInfo = new RegionInfo(culture.Name); string currencySymbol = regionInfo.CurrencySymbol; Console.WriteLine(currencySymbol);Console Output:
$
| Send us feedback about this snippet » |





