/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (ActiveKey != null) { ActiveKey.Validate(); } }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public override void Validate() { base.Validate(); if (ActiveKey != null) { ActiveKey.Validate(); } if (PreviousKeys != null) { foreach (var element in PreviousKeys) { if (element != null) { element.Validate(); } } } }