当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - IPAddress to CultureInfo

问题描述:

I need to convert an IP Address into a CultureInfo object. I've been able to convert the IP Address to it's two digit Country Code which can be used to create a RegionInfo object. At this point I'm stuck. It doesn't appear that you can create a CultureInfo object without the locale or the LCID.

网友答案:

You are right.You cant get CultureInfo object without the locale or the LCID.If you can live with a little margin of inaccuracy you can try this

Get language and country from a browser

分享给朋友:
您可能感兴趣的文章:
随机阅读: