System.Xml.XmlWellFormedWriter.WriteRaw C# (CSharp) Méthode

WriteRaw() public méthode

public WriteRaw ( char buffer, int index, int count ) : void
buffer char
index int
count int
Résultat void
        public override void WriteRaw(char[] buffer, int index, int count)
        {
            try
            {
                if (buffer == null)
                {
                    throw new ArgumentNullException(nameof(buffer));
                }
                if (index < 0)
                {
                    throw new ArgumentOutOfRangeException(nameof(index));
                }
                if (count < 0)
                {
                    throw new ArgumentOutOfRangeException(nameof(count));
                }
                if (count > buffer.Length - index)
                {
                    throw new ArgumentOutOfRangeException(nameof(count));
                }

                AdvanceState(Token.RawData);
                if (SaveAttrValue)
                {
                    _attrValueCache.WriteRaw(buffer, index, count);
                }
                else
                {
                    _writer.WriteRaw(buffer, index, count);
                }
            }
            catch
            {
                _currentState = State.Error;
                throw;
            }
        }

Same methods

XmlWellFormedWriter::WriteRaw ( string data ) : void