Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Cultures in Core missing?

$
0
0

Hi,

Why the GetCultures method is missing in Core?

var cul = CultureInfo.GetCultures(CultureTypes.AllCultures);

Is the "en-PH" currency not supported in Core?

var currentPrice = String.Format(CultureInfo.GetCultureInfo("en-PH"), "{0:c}", ((TblProduct)e.ListItem).Price);

var dealPrice = (textBoxInput.Replace("₱"String.Empty).Replace("?"String.Empty).Replace(","String.Empty));string toBeConvertedToDecimal = dealPrice;decimal newDealPrice = Convert.ToDecimal(toBeConvertedToDecimal); //<<----ERROR 

Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>