Class CountryKey
- Namespace
- Dynamicweb.Ecommerce.International
- Assembly
- Dynamicweb.Ecommerce.dll
The country key
[Serializable]
public sealed class CountryKey : IEquatable<CountryKey>
- Inheritance
-
CountryKey
- Implements
- Inherited Members
Constructors
CountryKey(string, string)
public CountryKey(string code2, string regionCode)
Parameters
Properties
Code2
The Code2.
public string Code2 { get; }
Property Value
RegionCode
The region code.
public string RegionCode { get; }
Property Value
Methods
Equals(CountryKey?)
Determines whether the specified CountryKey is equal to this instance.
public bool Equals(CountryKey? other)
Parameters
otherCountryKeyThe CountryKey to compare with this instance.
Returns
- bool
trueif the specified CountryKey is equal to this instance; otherwise,false.
Equals(object?)
Determines whether the specified object is equal to this instance.
public override bool Equals(object? other)
Parameters
Returns
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Parse(string)
Parses the identification string and returns the country key.
public static CountryKey? Parse(string countryKey)
Parameters
countryKeystringThe country key identification string.
Returns
ToString()
Returns a string representation of this instance.
public override string ToString()