1using System.Globalization;
12 public object?
Convert(
object? value, Type targetType,
object? parameter, CultureInfo culture)
15 return Country.EmojiInfo.Unicode;
17 return value ??
string.Empty;
21 public object?
ConvertBack(
object? value, Type targetType,
object? parameter, CultureInfo culture)
27 public object ProvideValue(System.IServiceProvider serviceProvider)
Conversion between Country Names and ISO-3166-1 country codes.
static bool TryGetCountryByCode(string? CountryCode, [NotNullWhen(true)] out ISO_3166_Country? Country)
Tries to get the country, given its country code.
Converts a country code to a country flag.
object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
object ProvideValue(System.IServiceProvider serviceProvider)
object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
class ISO_3166_Country(string Name, string Alpha2, string Alpha3, int NumericCode, string DialCode, EmojiInfo? EmojiInfo=null)
Representation of an ISO3166-1 Country