Is there a way to find a country's continent in C#, using the RegionInfo
class or any other way?
For example, you give the country name "Denmark" and it returns "Europe".
Nothing like that in the .NET framework. It is also rather ambiguous with geographical definitions for Eurasia and Oceania. There are 6 distinct definitions in use. You'll need your own dbase.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With