public override int GetHashCode()
 {
     unchecked
     {
         int result = (Pattern != null ? Pattern.GetHashCode() : 0);
         result = (result * 397) ^ DocType.GetHashCode();
         result = (result * 397) ^ PatternType.GetHashCode();
         result = (result * 397) ^ Enabled.GetHashCode();
         return(result);
     }
 }