Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Components.CountryISO3166 Class

This static class offers access to the list of countries and implements a number of services to convert between different country IDs.

The list of countries is cached. Any changes to the list require a site restart.

The list of countries is located at ./CoreComponents/Core/Addons/_Templates/CountryISO3166/Countries.txt.

Namespace: YetaWF.Core.Components
Assembly: YetaWF.Core

Inheritance

Syntax

public static class CountryISO3166;

Constructors

This class cannot be instantiated.

Methods

PublicStaticCombineCityStateZipGiven a country name, combine the city, state and zip fields for user display.
PublicStaticCountryToAddressTypeDetermine a country's address type.
PublicStaticCountryToIdConverts a country name to an ISO 3166 two character ID.
PublicStaticCountryToId3Converts a country name to an ISO 3166 three character ID.
PublicStaticCountryToNumberConverts a country name to an ISO 3166 three digit number.
PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicStaticGetCountriesReturns a collection of all countries.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
PublicStaticId3ToCountryConverts an ISO 3166 three character ID into a country name.
PublicStaticIdToCountryConverts an ISO 3166 two character ID into a country name.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticNumberToCountryConverts an ISO 3166 three digit number into a country name.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

See Also YetaWF.Core Overview