Struct AddressField
- Namespace
- Dynamicweb.Ecommerce.Orders.AddressValidation
- Assembly
- Dynamicweb.Ecommerce.dll
The structure AddressField represents info about address field for the validation.
[Serializable]
public struct AddressField : IEquatable<AddressField>
- Implements
- Inherited Members
Properties
FieldType
The type of field.
public AddressFieldType FieldType { readonly get; set; }
Property Value
NewValue
The value that will be provided as suggestion for the field if not valid.
public string NewValue { readonly get; set; }
Property Value
OldValue
The current value of the field.
public string OldValue { readonly get; set; }
Property Value
Methods
Equals(AddressField)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(AddressField other)
Parameters
otherAddressFieldAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(AddressField, AddressField)
public static bool operator ==(AddressField left, AddressField right)
Parameters
leftAddressFieldrightAddressField
Returns
operator !=(AddressField, AddressField)
public static bool operator !=(AddressField left, AddressField right)
Parameters
leftAddressFieldrightAddressField