public void ValidateName(ICharSequence name)
 {
     if (name == null || name.Count == 0)
     {
         ThrowHelper.ThrowArgumentException_HeaderName();
     }
     if (name is AsciiString asciiString)
     {
         asciiString.ForEachByte(ByteProcessor);
     }
     else
     {
         // Go through each character in the name
         Debug.Assert(name != null);
         // ReSharper disable once ForCanBeConvertedToForeach
         // Avoid new enumerator instance
         for (int index = 0; index < name.Count; ++index)
         {
             ValidateHeaderNameElement(name[index]);
         }
     }
 }