Search code examples
c#.netglobalization

Get Region info of Moldova


I'm trying to obtain region info by ISO 3166-1 TwoLetters country name - "MD".

var r = new RegionInfo("MD");

But I'm obtaining the following exception:

Culture name 'MD' is not supported.

This is strange because Microsoft Table of supported countries Moldova is present:

http://msdn.microsoft.com/en-us/library/dd374073.aspx


Solution

  • According to the MSDN documentation on RegionInfo about the cultures names:

    The predefined culture names are listed in the National Language Support (NLS) API Reference at the Go Global Developer Center.

    When you go to National Language Support (NLS) API Reference, MD is not found in there.