/// <summary>Serves as the default hash function.</summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(Patterns?.GetCollectionHashCode() ?? 0);
 }