Definition at line 82 of file XmlTextEncoder.cs.
83 {
85 {
86 throw new ArgumentNullException("array");
87 }
89 {
90 throw new ArgumentOutOfRangeException("offset");
91 }
93 {
94 throw new ArgumentOutOfRangeException("count");
95 }
97 {
98 throw new ArgumentOutOfRangeException("count");
99 }
101 {
103 }
106 char c = '\0';
107 while (true)
108 {
111 {
112 if (!XmlCharType.IsAttributeValueChar(c =
array[i]))
113 {
114 break;
115 }
116 }
118 {
120 }
121 if (i == num)
122 {
123 break;
124 }
125 switch (c)
126 {
127 case '\t':
129 break;
130 case '\n':
131 case '\r':
133 {
135 }
136 else
137 {
139 }
140 break;
141 case '<':
143 break;
144 case '>':
146 break;
147 case '&':
149 break;
150 case '\'':
152 {
154 }
155 else
156 {
158 }
159 break;
160 case '"':
162 {
164 }
165 else
166 {
168 }
169 break;
170 default:
171 if (XmlCharType.IsHighSurrogate(c))
172 {
173 if (i + 1 >= num)
174 {
176 }
178 }
179 else
180 {
181 if (XmlCharType.IsLowSurrogate(c))
182 {
183 throw XmlConvert.CreateInvalidHighSurrogateCharException(c);
184 }
186 }
187 break;
188 }
190 }
191 }
virtual void Write(char value)
static string Xml_SurrogatePairSplit
StringBuilder Append(char value, int repeatCount)
void WriteEntityRefImpl(string name)
void WriteSurrogateChar(char lowChar, char highChar)
void WriteCharEntityImpl(char ch)
readonly TextWriter _textWriter
References System.Xml.XmlTextEncoder._attrValue, System.Xml.XmlTextEncoder._cacheAttrValue, System.Xml.XmlTextEncoder._inAttribute, System.Xml.XmlTextEncoder._quoteChar, System.Xml.XmlTextEncoder._textWriter, System.Text.StringBuilder.Append(), System.Xml.ArgumentException, System.array, System.count, System.Xml.XmlConvert.CreateInvalidHighSurrogateCharException(), System.Xml.Dictionary, System.Xml.XmlCharType.IsAttributeValueChar(), System.Xml.XmlCharType.IsHighSurrogate(), System.Xml.XmlCharType.IsLowSurrogate(), System.offset, System.IO.TextWriter.Write(), System.Xml.XmlTextEncoder.WriteCharEntityImpl(), System.Xml.XmlTextEncoder.WriteEntityRefImpl(), System.Xml.XmlTextEncoder.WriteSurrogateChar(), and System.SR.Xml_SurrogatePairSplit.
Referenced by System.Xml.Xsl.XsltOld.ReaderOutput.XmlEncoder.AttributeInnerXml(), and System.Xml.Xsl.XsltOld.ReaderOutput.XmlEncoder.AttributeOuterXml().