1using System.Globalization;
12 public object?
Convert(
object? value, Type targetType,
object? parameter, CultureInfo culture)
14 if (value is
string Code)
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 ? string ToName(string? CountryCode)
Converts the code to a country name (if found). If not found, returns the original code.
Converts a country code to a country name.
object ProvideValue(System.IServiceProvider serviceProvider)
object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)