Esempio n. 1
0
        public override void WriteString(XmlDictionaryString text)
        {
            if (text == null)
            {
                throw new ArgumentNullException("text");
            }
            CheckIfTextAllowed();

            if (text == null)
            {
                text = XmlDictionaryString.Empty;
            }

            ProcessStateForContent();

            if (state == WriteState.Attribute)
            {
                attr_value += text.Value;
            }
            else if (text.Equals(XmlDictionary.Empty))
            {
                writer.Write(BF.EmptyText);
            }
            else
            {
                writer.Write(BF.TextIndex);
                WriteDictionaryIndex(text);
            }
        }
		public override void WriteString (XmlDictionaryString text)
		{
			if (text == null)
				throw new ArgumentNullException ("text");
			CheckIfTextAllowed ();

			if (text == null)
				text = XmlDictionaryString.Empty;

			ProcessStateForContent ();

			if (state == WriteState.Attribute)
				attr_value += text.Value;
			else if (text.Equals (XmlDictionary.Empty))
				writer.Write (BF.EmptyText);
			else {
				writer.Write (BF.TextIndex);
				WriteDictionaryIndex (text);
			}
		}