1 <?xml version="1.0" encoding="utf-8"?><doc>
3 <name>System.Text.Encoding.Extensions</name>
6 <member name="T:System.Text.ASCIIEncoding">
7 <summary>Represents an ASCII character encoding of Unicode characters.</summary>
9 <member name="M:System.Text.ASCIIEncoding.#ctor">
10 <summary>Initializes a new instance of the <see cref="T:System.Text.ASCIIEncoding"></see> class.</summary>
12 <member name="M:System.Text.ASCIIEncoding.GetByteCount(System.String)">
13 <summary>Calculates the number of bytes produced by encoding the characters in the specified <see cref="T:System.String"></see>.</summary>
14 <param name="chars">The <see cref="T:System.String"></see> containing the set of characters to encode.</param>
15 <returns>The number of bytes produced by encoding the specified characters.</returns>
16 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.</exception>
17 <exception cref="T:System.ArgumentOutOfRangeException">The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
18 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
20 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
22 <member name="M:System.Text.ASCIIEncoding.GetByteCount(System.Char*,System.Int32)">
23 <summary>Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.</summary>
24 <param name="chars">A pointer to the first character to encode.</param>
25 <param name="count">The number of characters to encode.</param>
26 <returns>The number of bytes produced by encoding the specified characters.</returns>
27 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.</exception>
28 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="count">count</paramref> is less than zero.
30 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
31 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
33 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
35 <member name="M:System.Text.ASCIIEncoding.GetByteCount(System.Char[],System.Int32,System.Int32)">
36 <summary>Calculates the number of bytes produced by encoding a set of characters from the specified character array.</summary>
37 <param name="chars">The character array containing the set of characters to encode.</param>
38 <param name="index">The index of the first character to encode.</param>
39 <param name="count">The number of characters to encode.</param>
40 <returns>The number of bytes produced by encoding the specified characters.</returns>
41 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.</exception>
42 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
44 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
46 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
47 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
49 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
51 <member name="M:System.Text.ASCIIEncoding.GetBytes(System.Char*,System.Int32,System.Byte*,System.Int32)">
52 <summary>Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer.</summary>
53 <param name="chars">A pointer to the first character to encode.</param>
54 <param name="charCount">The number of characters to encode.</param>
55 <param name="bytes">A pointer to the location at which to start writing the resulting sequence of bytes.</param>
56 <param name="byteCount">The maximum number of bytes to write.</param>
57 <returns>The actual number of bytes written at the location indicated by <paramref name="bytes">bytes</paramref>.</returns>
58 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.
60 <paramref name="bytes">bytes</paramref> is null.</exception>
61 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charCount">charCount</paramref> or <paramref name="byteCount">byteCount</paramref> is less than zero.</exception>
62 <exception cref="T:System.ArgumentException"><paramref name="byteCount">byteCount</paramref> is less than the resulting number of bytes.</exception>
63 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
65 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
67 <member name="M:System.Text.ASCIIEncoding.GetBytes(System.Char[],System.Int32,System.Int32,System.Byte[],System.Int32)">
68 <summary>Encodes a set of characters from the specified character array into the specified byte array.</summary>
69 <param name="chars">The character array containing the set of characters to encode.</param>
70 <param name="charIndex">The index of the first character to encode.</param>
71 <param name="charCount">The number of characters to encode.</param>
72 <param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
73 <param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
74 <returns>The actual number of bytes written into <paramref name="bytes">bytes</paramref>.</returns>
75 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.
77 <paramref name="bytes">bytes</paramref> is null.</exception>
78 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charIndex">charIndex</paramref> or <paramref name="charCount">charCount</paramref> or <paramref name="byteIndex">byteIndex</paramref> is less than zero.
80 <paramref name="charIndex">charIndex</paramref> and <paramref name="charCount">charCount</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
82 <paramref name="byteIndex">byteIndex</paramref> is not a valid index in <paramref name="bytes">bytes</paramref>.</exception>
83 <exception cref="T:System.ArgumentException"><paramref name="bytes">bytes</paramref> does not have enough capacity from <paramref name="byteIndex">byteIndex</paramref> to the end of the array to accommodate the resulting bytes.</exception>
84 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
86 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
88 <member name="M:System.Text.ASCIIEncoding.GetBytes(System.String,System.Int32,System.Int32,System.Byte[],System.Int32)">
89 <summary>Encodes a set of characters from the specified <see cref="T:System.String"></see> into the specified byte array.</summary>
90 <param name="chars">The <see cref="T:System.String"></see> containing the set of characters to encode.</param>
91 <param name="charIndex">The index of the first character to encode.</param>
92 <param name="charCount">The number of characters to encode.</param>
93 <param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
94 <param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
95 <returns>The actual number of bytes written into <paramref name="bytes">bytes</paramref>.</returns>
96 <exception cref="T:System.ArgumentNullException"><paramref name="s">s</paramref> is null.
98 <paramref name="bytes">bytes</paramref> is null.</exception>
99 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charIndex">charIndex</paramref> or <paramref name="charCount">charCount</paramref> or <paramref name="byteIndex">byteIndex</paramref> is less than zero.
101 <paramref name="charIndex">charIndex</paramref> and <paramref name="charCount">charCount</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
103 <paramref name="byteIndex">byteIndex</paramref> is not a valid index in <paramref name="bytes">bytes</paramref>.</exception>
104 <exception cref="T:System.ArgumentException"><paramref name="bytes">bytes</paramref> does not have enough capacity from <paramref name="byteIndex">byteIndex</paramref> to the end of the array to accommodate the resulting bytes.</exception>
105 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
107 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
109 <member name="M:System.Text.ASCIIEncoding.GetCharCount(System.Byte[],System.Int32,System.Int32)">
110 <summary>Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.</summary>
111 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
112 <param name="index">The index of the first byte to decode.</param>
113 <param name="count">The number of bytes to decode.</param>
114 <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
115 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.</exception>
116 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
118 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.
120 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
121 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
123 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
125 <member name="M:System.Text.ASCIIEncoding.GetCharCount(System.Byte*,System.Int32)">
126 <summary>Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.</summary>
127 <param name="bytes">A pointer to the first byte to decode.</param>
128 <param name="count">The number of bytes to decode.</param>
129 <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
130 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.</exception>
131 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="count">count</paramref> is less than zero.
133 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
134 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
136 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
138 <member name="M:System.Text.ASCIIEncoding.GetChars(System.Byte*,System.Int32,System.Char*,System.Int32)">
139 <summary>Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer.</summary>
140 <param name="bytes">A pointer to the first byte to decode.</param>
141 <param name="byteCount">The number of bytes to decode.</param>
142 <param name="chars">A pointer to the location at which to start writing the resulting set of characters.</param>
143 <param name="charCount">The maximum number of characters to write.</param>
144 <returns>The actual number of characters written at the location indicated by <paramref name="chars">chars</paramref>.</returns>
145 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.
147 <paramref name="chars">chars</paramref> is null.</exception>
148 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteCount">byteCount</paramref> or <paramref name="charCount">charCount</paramref> is less than zero.</exception>
149 <exception cref="T:System.ArgumentException"><paramref name="charCount">charCount</paramref> is less than the resulting number of characters.</exception>
150 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
152 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
154 <member name="M:System.Text.ASCIIEncoding.GetChars(System.Byte[],System.Int32,System.Int32,System.Char[],System.Int32)">
155 <summary>Decodes a sequence of bytes from the specified byte array into the specified character array.</summary>
156 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
157 <param name="byteIndex">The index of the first byte to decode.</param>
158 <param name="byteCount">The number of bytes to decode.</param>
159 <param name="chars">The character array to contain the resulting set of characters.</param>
160 <param name="charIndex">The index at which to start writing the resulting set of characters.</param>
161 <returns>The actual number of characters written into <paramref name="chars">chars</paramref>.</returns>
162 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.
164 <paramref name="chars">chars</paramref> is null.</exception>
165 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteIndex">byteIndex</paramref> or <paramref name="byteCount">byteCount</paramref> or <paramref name="charIndex">charIndex</paramref> is less than zero.
167 <paramref name="byteindex">byteindex</paramref> and <paramref name="byteCount">byteCount</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.
169 <paramref name="charIndex">charIndex</paramref> is not a valid index in <paramref name="chars">chars</paramref>.</exception>
170 <exception cref="T:System.ArgumentException"><paramref name="chars">chars</paramref> does not have enough capacity from <paramref name="charIndex">charIndex</paramref> to the end of the array to accommodate the resulting characters.</exception>
171 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
173 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
175 <member name="M:System.Text.ASCIIEncoding.GetDecoder">
176 <summary>Obtains a decoder that converts an ASCII encoded sequence of bytes into a sequence of Unicode characters.</summary>
177 <returns>A <see cref="System.Text.Decoder"></see> that converts an ASCII encoded sequence of bytes into a sequence of Unicode characters.</returns>
179 <member name="M:System.Text.ASCIIEncoding.GetEncoder">
180 <summary>Obtains an encoder that converts a sequence of Unicode characters into an ASCII encoded sequence of bytes.</summary>
181 <returns>An <see cref="System.Text.Encoder"></see> that converts a sequence of Unicode characters into an ASCII encoded sequence of bytes.</returns>
183 <member name="M:System.Text.ASCIIEncoding.GetMaxByteCount(System.Int32)">
184 <summary>Calculates the maximum number of bytes produced by encoding the specified number of characters.</summary>
185 <param name="charCount">The number of characters to encode.</param>
186 <returns>The maximum number of bytes produced by encoding the specified number of characters.</returns>
187 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charCount">charCount</paramref> is less than zero.
189 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
191 <member name="M:System.Text.ASCIIEncoding.GetMaxCharCount(System.Int32)">
192 <summary>Calculates the maximum number of characters produced by decoding the specified number of bytes.</summary>
193 <param name="byteCount">The number of bytes to decode.</param>
194 <returns>The maximum number of characters produced by decoding the specified number of bytes.</returns>
195 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteCount">byteCount</paramref> is less than zero.
197 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
199 <member name="M:System.Text.ASCIIEncoding.GetString(System.Byte[],System.Int32,System.Int32)">
200 <summary>Decodes a range of bytes from a byte array into a string.</summary>
201 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
202 <param name="byteIndex">The index of the first byte to decode.</param>
203 <param name="byteCount">The number of bytes to decode.</param>
204 <returns>A <see cref="System.String"></see> containing the results of decoding the specified sequence of bytes.</returns>
205 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.</exception>
206 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
208 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.</exception>
209 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
211 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
213 <member name="P:System.Text.ASCIIEncoding.IsSingleByte">
214 <summary>Gets a value indicating whether the current encoding uses single-byte code points.</summary>
215 <returns>This property is always true.</returns>
217 <member name="T:System.Text.UnicodeEncoding">
218 <summary>Represents a UTF-16 encoding of Unicode characters.</summary>
220 <member name="M:System.Text.UnicodeEncoding.#ctor">
221 <summary>Initializes a new instance of the <see cref="T:System.Text.UnicodeEncoding"></see> class.</summary>
223 <member name="M:System.Text.UnicodeEncoding.#ctor(System.Boolean,System.Boolean)">
224 <summary>Initializes a new instance of the <see cref="T:System.Text.UnicodeEncoding"></see> class. Parameters specify whether to use the big endian byte order and whether the <see cref="M:System.Text.UnicodeEncoding.GetPreamble"></see> method returns a Unicode byte order mark.</summary>
225 <param name="bigEndian">true to use the big endian byte order (most significant byte first), or false to use the little endian byte order (least significant byte first).</param>
226 <param name="byteOrderMark">true to specify that the <see cref="M:System.Text.UnicodeEncoding.GetPreamble"></see> method returns a Unicode byte order mark; otherwise, false.</param>
228 <member name="M:System.Text.UnicodeEncoding.#ctor(System.Boolean,System.Boolean,System.Boolean)">
229 <summary>Initializes a new instance of the <see cref="T:System.Text.UnicodeEncoding"></see> class. Parameters specify whether to use the big endian byte order, whether to provide a Unicode byte order mark, and whether to throw an exception when an invalid encoding is detected.</summary>
230 <param name="bigEndian">true to use the big endian byte order (most significant byte first); false to use the little endian byte order (least significant byte first).</param>
231 <param name="byteOrderMark">true to specify that the <see cref="M:System.Text.UnicodeEncoding.GetPreamble"></see> method returns a Unicode byte order mark; otherwise, false.</param>
232 <param name="throwOnInvalidBytes">true to specify that an exception should be thrown when an invalid encoding is detected; otherwise, false.</param>
234 <member name="F:System.Text.UnicodeEncoding.CharSize">
235 <summary>Represents the Unicode character size in bytes. This field is a constant.</summary>
238 <member name="M:System.Text.UnicodeEncoding.Equals(System.Object)">
239 <summary>Determines whether the specified <see cref="T:System.Object"></see> is equal to the current <see cref="T:System.Text.UnicodeEncoding"></see> object.</summary>
240 <param name="value">The object to compare with the current object.</param>
241 <returns>true if <paramref name="value">value</paramref> is an instance of <see cref="System.Text.UnicodeEncoding"></see> and is equal to the current object; otherwise, false.</returns>
243 <member name="M:System.Text.UnicodeEncoding.GetByteCount(System.String)">
244 <summary>Calculates the number of bytes produced by encoding the characters in the specified string.</summary>
245 <param name="s">The string that contains the set of characters to encode.</param>
246 <returns>The number of bytes produced by encoding the specified characters.</returns>
247 <exception cref="T:System.ArgumentNullException"><paramref name="s">s</paramref> is null.</exception>
248 <exception cref="T:System.ArgumentOutOfRangeException">The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
249 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="s">s</paramref> contains an invalid sequence of characters.</exception>
250 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
252 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
254 <member name="M:System.Text.UnicodeEncoding.GetByteCount(System.Char*,System.Int32)">
255 <summary>Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.</summary>
256 <param name="chars">A pointer to the first character to encode.</param>
257 <param name="count">The number of characters to encode.</param>
258 <returns>The number of bytes produced by encoding the specified characters.</returns>
259 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.</exception>
260 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="count">count</paramref> is less than zero.
262 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
263 <exception cref="T:System.ArgumentException">Error detection is enabled and <paramref name="chars">chars</paramref> contains an invalid sequence of characters.</exception>
264 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
266 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
268 <member name="M:System.Text.UnicodeEncoding.GetByteCount(System.Char[],System.Int32,System.Int32)">
269 <summary>Calculates the number of bytes produced by encoding a set of characters from the specified character array.</summary>
270 <param name="chars">The character array containing the set of characters to encode.</param>
271 <param name="index">The index of the first character to encode.</param>
272 <param name="count">The number of characters to encode.</param>
273 <returns>The number of bytes produced by encoding the specified characters.</returns>
274 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null (Nothing).</exception>
275 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
277 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
279 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
280 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars">chars</paramref> contains an invalid sequence of characters.</exception>
281 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
283 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
285 <member name="M:System.Text.UnicodeEncoding.GetBytes(System.Char[],System.Int32,System.Int32,System.Byte[],System.Int32)">
286 <summary>Encodes a set of characters from the specified character array into the specified byte array.</summary>
287 <param name="chars">The character array containing the set of characters to encode.</param>
288 <param name="charIndex">The index of the first character to encode.</param>
289 <param name="charCount">The number of characters to encode.</param>
290 <param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
291 <param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
292 <returns>The actual number of bytes written into <paramref name="bytes">bytes</paramref>.</returns>
293 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null (Nothing).
295 <paramref name="bytes">bytes</paramref> is null (Nothing).</exception>
296 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charIndex">charIndex</paramref> or <paramref name="charCount">charCount</paramref> or <paramref name="byteIndex">byteIndex</paramref> is less than zero.
298 <paramref name="charIndex">charIndex</paramref> and <paramref name="charCount">charCount</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
300 <paramref name="byteIndex">byteIndex</paramref> is not a valid index in <paramref name="bytes">bytes</paramref>.</exception>
301 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars">chars</paramref> contains an invalid sequence of characters.
303 <paramref name="bytes">bytes</paramref> does not have enough capacity from <paramref name="byteIndex">byteIndex</paramref> to the end of the array to accommodate the resulting bytes.</exception>
304 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
306 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
308 <member name="M:System.Text.UnicodeEncoding.GetBytes(System.String,System.Int32,System.Int32,System.Byte[],System.Int32)">
309 <summary>Encodes a set of characters from the specified <see cref="T:System.String"></see> into the specified byte array.</summary>
310 <param name="s">The string containing the set of characters to encode.</param>
311 <param name="charIndex">The index of the first character to encode.</param>
312 <param name="charCount">The number of characters to encode.</param>
313 <param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
314 <param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
315 <returns>The actual number of bytes written into <paramref name="bytes">bytes</paramref>.</returns>
316 <exception cref="T:System.ArgumentNullException"><paramref name="s">s</paramref> is null.
318 <paramref name="bytes">bytes</paramref> is null (Nothing).</exception>
319 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charIndex">charIndex</paramref> or <paramref name="charCount">charCount</paramref> or <paramref name="byteIndex">byteIndex</paramref> is less than zero.
321 <paramref name="charIndex">charIndex</paramref> and <paramref name="charCount">charCount</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
323 <paramref name="byteIndex">byteIndex</paramref> is not a valid index in <paramref name="bytes">bytes</paramref>.</exception>
324 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="s">s</paramref> contains an invalid sequence of characters.
326 <paramref name="bytes">bytes</paramref> does not have enough capacity from <paramref name="byteIndex">byteIndex</paramref> to the end of the array to accommodate the resulting bytes.</exception>
327 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
329 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
331 <member name="M:System.Text.UnicodeEncoding.GetBytes(System.Char*,System.Int32,System.Byte*,System.Int32)">
332 <summary>Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer.</summary>
333 <param name="chars">A pointer to the first character to encode.</param>
334 <param name="charCount">The number of characters to encode.</param>
335 <param name="bytes">A pointer to the location at which to start writing the resulting sequence of bytes.</param>
336 <param name="byteCount">The maximum number of bytes to write.</param>
337 <returns>The actual number of bytes written at the location indicated by the <paramref name="bytes">bytes</paramref> parameter.</returns>
338 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null (Nothing).
340 <paramref name="bytes">bytes</paramref> is null (Nothing).</exception>
341 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charCount">charCount</paramref> or <paramref name="byteCount">byteCount</paramref> is less than zero.</exception>
342 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars">chars</paramref> contains an invalid sequence of characters.
344 <paramref name="byteCount">byteCount</paramref> is less than the resulting number of bytes.</exception>
345 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
347 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
349 <member name="M:System.Text.UnicodeEncoding.GetCharCount(System.Byte*,System.Int32)">
350 <summary>Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.</summary>
351 <param name="bytes">A pointer to the first byte to decode.</param>
352 <param name="count">The number of bytes to decode.</param>
353 <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
354 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null (Nothing).</exception>
355 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="count">count</paramref> is less than zero.
357 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
358 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.</exception>
359 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
361 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
363 <member name="M:System.Text.UnicodeEncoding.GetCharCount(System.Byte[],System.Int32,System.Int32)">
364 <summary>Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.</summary>
365 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
366 <param name="index">The index of the first byte to decode.</param>
367 <param name="count">The number of bytes to decode.</param>
368 <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
369 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null (Nothing).</exception>
370 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
372 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.
374 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
375 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.</exception>
376 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
378 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
380 <member name="M:System.Text.UnicodeEncoding.GetChars(System.Byte*,System.Int32,System.Char*,System.Int32)">
381 <summary>Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer.</summary>
382 <param name="bytes">A pointer to the first byte to decode.</param>
383 <param name="byteCount">The number of bytes to decode.</param>
384 <param name="chars">A pointer to the location at which to start writing the resulting set of characters.</param>
385 <param name="charCount">The maximum number of characters to write.</param>
386 <returns>The actual number of characters written at the location indicated by the <paramref name="chars">chars</paramref> parameter.</returns>
387 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null (Nothing).
389 <paramref name="chars">chars</paramref> is null (Nothing).</exception>
390 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteCount">byteCount</paramref> or <paramref name="charCount">charCount</paramref> is less than zero.</exception>
391 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.
393 <paramref name="charCount">charCount</paramref> is less than the resulting number of characters.</exception>
394 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
396 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
398 <member name="M:System.Text.UnicodeEncoding.GetChars(System.Byte[],System.Int32,System.Int32,System.Char[],System.Int32)">
399 <summary>Decodes a sequence of bytes from the specified byte array into the specified character array.</summary>
400 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
401 <param name="byteIndex">The index of the first byte to decode.</param>
402 <param name="byteCount">The number of bytes to decode.</param>
403 <param name="chars">The character array to contain the resulting set of characters.</param>
404 <param name="charIndex">The index at which to start writing the resulting set of characters.</param>
405 <returns>The actual number of characters written into <paramref name="chars">chars</paramref>.</returns>
406 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null (Nothing).
408 <paramref name="chars">chars</paramref> is null (Nothing).</exception>
409 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteIndex">byteIndex</paramref> or <paramref name="byteCount">byteCount</paramref> or <paramref name="charIndex">charIndex</paramref> is less than zero.
411 <paramref name="byteindex">byteindex</paramref> and <paramref name="byteCount">byteCount</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.
413 <paramref name="charIndex">charIndex</paramref> is not a valid index in <paramref name="chars">chars</paramref>.</exception>
414 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.
416 <paramref name="chars">chars</paramref> does not have enough capacity from <paramref name="charIndex">charIndex</paramref> to the end of the array to accommodate the resulting characters.</exception>
417 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
419 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
421 <member name="M:System.Text.UnicodeEncoding.GetDecoder">
422 <summary>Obtains a decoder that converts a UTF-16 encoded sequence of bytes into a sequence of Unicode characters.</summary>
423 <returns>A <see cref="System.Text.Decoder"></see> that converts a UTF-16 encoded sequence of bytes into a sequence of Unicode characters.</returns>
425 <member name="M:System.Text.UnicodeEncoding.GetEncoder">
426 <summary>Obtains an encoder that converts a sequence of Unicode characters into a UTF-16 encoded sequence of bytes.</summary>
427 <returns>A <see cref="System.Text.Encoder"></see> object that converts a sequence of Unicode characters into a UTF-16 encoded sequence of bytes.</returns>
429 <member name="M:System.Text.UnicodeEncoding.GetHashCode">
430 <summary>Returns the hash code for the current instance.</summary>
431 <returns>The hash code for the current <see cref="System.Text.UnicodeEncoding"></see> object.</returns>
433 <member name="M:System.Text.UnicodeEncoding.GetMaxByteCount(System.Int32)">
434 <summary>Calculates the maximum number of bytes produced by encoding the specified number of characters.</summary>
435 <param name="charCount">The number of characters to encode.</param>
436 <returns>The maximum number of bytes produced by encoding the specified number of characters.</returns>
437 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charCount">charCount</paramref> is less than zero.
439 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
440 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
442 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
444 <member name="M:System.Text.UnicodeEncoding.GetMaxCharCount(System.Int32)">
445 <summary>Calculates the maximum number of characters produced by decoding the specified number of bytes.</summary>
446 <param name="byteCount">The number of bytes to decode.</param>
447 <returns>The maximum number of characters produced by decoding the specified number of bytes.</returns>
448 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteCount">byteCount</paramref> is less than zero.
450 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
451 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
453 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
455 <member name="M:System.Text.UnicodeEncoding.GetPreamble">
456 <summary>Returns a Unicode byte order mark encoded in UTF-16 format, if the constructor for this instance requests a byte order mark.</summary>
457 <returns>A byte array containing the Unicode byte order mark, if the <see cref="System.Text.UnicodeEncoding"></see> object is configured to supply one. Otherwise, this method returns a zero-length byte array.</returns>
459 <member name="M:System.Text.UnicodeEncoding.GetString(System.Byte[],System.Int32,System.Int32)">
460 <summary>Decodes a range of bytes from a byte array into a string.</summary>
461 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
462 <param name="index">The index of the first byte to decode.</param>
463 <param name="count">The number of bytes to decode.</param>
464 <returns>A <see cref="System.String"></see> object containing the results of decoding the specified sequence of bytes.</returns>
465 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null (Nothing).</exception>
466 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
468 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.</exception>
469 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.</exception>
470 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
472 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
474 <member name="T:System.Text.UTF32Encoding">
475 <summary>Represents a UTF-32 encoding of Unicode characters.</summary>
477 <member name="M:System.Text.UTF32Encoding.#ctor">
478 <summary>Initializes a new instance of the <see cref="T:System.Text.UTF32Encoding"></see> class.</summary>
480 <member name="M:System.Text.UTF32Encoding.#ctor(System.Boolean,System.Boolean)">
481 <summary>Initializes a new instance of the <see cref="T:System.Text.UTF32Encoding"></see> class. Parameters specify whether to use the big endian byte order and whether the <see cref="M:System.Text.UTF32Encoding.GetPreamble"></see> method returns a Unicode Unicode byte order mark.</summary>
482 <param name="bigEndian">true to use the big endian byte order (most significant byte first), or false to use the little endian byte order (least significant byte first).</param>
483 <param name="byteOrderMark">true to specify that a Unicode byte order mark is provided; otherwise, false.</param>
485 <member name="M:System.Text.UTF32Encoding.#ctor(System.Boolean,System.Boolean,System.Boolean)">
486 <summary>Initializes a new instance of the <see cref="T:System.Text.UTF32Encoding"></see> class. Parameters specify whether to use the big endian byte order, whether to provide a Unicode byte order mark, and whether to throw an exception when an invalid encoding is detected.</summary>
487 <param name="bigEndian">true to use the big endian byte order (most significant byte first), or false to use the little endian byte order (least significant byte first).</param>
488 <param name="byteOrderMark">true to specify that a Unicode byte order mark is provided; otherwise, false.</param>
489 <param name="throwOnInvalidCharacters">true to specify that an exception should be thrown when an invalid encoding is detected; otherwise, false.</param>
491 <member name="M:System.Text.UTF32Encoding.Equals(System.Object)">
492 <summary>Determines whether the specified <see cref="T:System.Object"></see> is equal to the current <see cref="T:System.Text.UTF32Encoding"></see> object.</summary>
493 <param name="value">The <see cref="T:System.Object"></see> to compare with the current object.</param>
494 <returns>true if <paramref name="value">value</paramref> is an instance of <see cref="System.Text.UTF32Encoding"></see> and is equal to the current object; otherwise, false.</returns>
496 <member name="M:System.Text.UTF32Encoding.GetByteCount(System.String)">
497 <summary>Calculates the number of bytes produced by encoding the characters in the specified <see cref="T:System.String"></see>.</summary>
498 <param name="s">The <see cref="T:System.String"></see> containing the set of characters to encode.</param>
499 <returns>The number of bytes produced by encoding the specified characters.</returns>
500 <exception cref="T:System.ArgumentNullException"><paramref name="s">s</paramref> is null.</exception>
501 <exception cref="T:System.ArgumentOutOfRangeException">The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
502 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="s">s</paramref> contains an invalid sequence of characters.</exception>
503 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
505 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
507 <member name="M:System.Text.UTF32Encoding.GetByteCount(System.Char*,System.Int32)">
508 <summary>Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.</summary>
509 <param name="chars">A pointer to the first character to encode.</param>
510 <param name="count">The number of characters to encode.</param>
511 <returns>The number of bytes produced by encoding the specified characters.</returns>
512 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.</exception>
513 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="count">count</paramref> is less than zero.
515 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
516 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars">chars</paramref> contains an invalid sequence of characters.</exception>
517 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
519 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
521 <member name="M:System.Text.UTF32Encoding.GetByteCount(System.Char[],System.Int32,System.Int32)">
522 <summary>Calculates the number of bytes produced by encoding a set of characters from the specified character array.</summary>
523 <param name="chars">The character array containing the set of characters to encode.</param>
524 <param name="index">The index of the first character to encode.</param>
525 <param name="count">The number of characters to encode.</param>
526 <returns>The number of bytes produced by encoding the specified characters.</returns>
527 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.</exception>
528 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
530 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
532 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
533 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars">chars</paramref> contains an invalid sequence of characters.</exception>
534 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
536 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
538 <member name="M:System.Text.UTF32Encoding.GetBytes(System.Char*,System.Int32,System.Byte*,System.Int32)">
539 <summary>Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer.</summary>
540 <param name="chars">A pointer to the first character to encode.</param>
541 <param name="charCount">The number of characters to encode.</param>
542 <param name="bytes">A pointer to the location at which to start writing the resulting sequence of bytes.</param>
543 <param name="byteCount">The maximum number of bytes to write.</param>
544 <returns>The actual number of bytes written at the location indicated by the <paramref name="bytes">bytes</paramref> parameter.</returns>
545 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.
547 <paramref name="bytes">bytes</paramref> is null.</exception>
548 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charCount">charCount</paramref> or <paramref name="byteCount">byteCount</paramref> is less than zero.</exception>
549 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars">chars</paramref> contains an invalid sequence of characters.
551 <paramref name="byteCount">byteCount</paramref> is less than the resulting number of bytes.</exception>
552 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
554 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
556 <member name="M:System.Text.UTF32Encoding.GetBytes(System.Char[],System.Int32,System.Int32,System.Byte[],System.Int32)">
557 <summary>Encodes a set of characters from the specified character array into the specified byte array.</summary>
558 <param name="chars">The character array containing the set of characters to encode.</param>
559 <param name="charIndex">The index of the first character to encode.</param>
560 <param name="charCount">The number of characters to encode.</param>
561 <param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
562 <param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
563 <returns>The actual number of bytes written into <paramref name="bytes">bytes</paramref>.</returns>
564 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.
566 <paramref name="bytes">bytes</paramref> is null.</exception>
567 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charIndex">charIndex</paramref> or <paramref name="charCount">charCount</paramref> or <paramref name="byteIndex">byteIndex</paramref> is less than zero.
569 <paramref name="charIndex">charIndex</paramref> and <paramref name="charCount">charCount</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
571 <paramref name="byteIndex">byteIndex</paramref> is not a valid index in <paramref name="bytes">bytes</paramref>.</exception>
572 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars">chars</paramref> contains an invalid sequence of characters.
574 <paramref name="bytes">bytes</paramref> does not have enough capacity from <paramref name="byteIndex">byteIndex</paramref> to the end of the array to accommodate the resulting bytes.</exception>
575 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
577 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
579 <member name="M:System.Text.UTF32Encoding.GetBytes(System.String,System.Int32,System.Int32,System.Byte[],System.Int32)">
580 <summary>Encodes a set of characters from the specified <see cref="T:System.String"></see> into the specified byte array.</summary>
581 <param name="s">The <see cref="T:System.String"></see> containing the set of characters to encode.</param>
582 <param name="charIndex">The index of the first character to encode.</param>
583 <param name="charCount">The number of characters to encode.</param>
584 <param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
585 <param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
586 <returns>The actual number of bytes written into <paramref name="bytes">bytes</paramref>.</returns>
587 <exception cref="T:System.ArgumentNullException"><paramref name="s">s</paramref> is null.
589 <paramref name="bytes">bytes</paramref> is null.</exception>
590 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charIndex">charIndex</paramref> or <paramref name="charCount">charCount</paramref> or <paramref name="byteIndex">byteIndex</paramref> is less than zero.
592 <paramref name="charIndex">charIndex</paramref> and <paramref name="charCount">charCount</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
594 <paramref name="byteIndex">byteIndex</paramref> is not a valid index in <paramref name="bytes">bytes</paramref>.</exception>
595 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="s">s</paramref> contains an invalid sequence of characters.
597 <paramref name="bytes">bytes</paramref> does not have enough capacity from <paramref name="byteIndex">byteIndex</paramref> to the end of the array to accommodate the resulting bytes.</exception>
598 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
600 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
602 <member name="M:System.Text.UTF32Encoding.GetCharCount(System.Byte[],System.Int32,System.Int32)">
603 <summary>Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.</summary>
604 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
605 <param name="index">The index of the first byte to decode.</param>
606 <param name="count">The number of bytes to decode.</param>
607 <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
608 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.</exception>
609 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
611 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.
613 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
614 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.</exception>
615 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
617 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
619 <member name="M:System.Text.UTF32Encoding.GetCharCount(System.Byte*,System.Int32)">
620 <summary>Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.</summary>
621 <param name="bytes">A pointer to the first byte to decode.</param>
622 <param name="count">The number of bytes to decode.</param>
623 <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
624 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.</exception>
625 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="count">count</paramref> is less than zero.
627 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
628 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.</exception>
629 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
631 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
633 <member name="M:System.Text.UTF32Encoding.GetChars(System.Byte*,System.Int32,System.Char*,System.Int32)">
634 <summary>Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer.</summary>
635 <param name="bytes">A pointer to the first byte to decode.</param>
636 <param name="byteCount">The number of bytes to decode.</param>
637 <param name="chars">A pointer to the location at which to start writing the resulting set of characters.</param>
638 <param name="charCount">The maximum number of characters to write.</param>
639 <returns>The actual number of characters written at the location indicated by <paramref name="chars">chars</paramref>.</returns>
640 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.
642 <paramref name="chars">chars</paramref> is null.</exception>
643 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteCount">byteCount</paramref> or <paramref name="charCount">charCount</paramref> is less than zero.</exception>
644 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.
646 <paramref name="charCount">charCount</paramref> is less than the resulting number of characters.</exception>
647 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
649 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
651 <member name="M:System.Text.UTF32Encoding.GetChars(System.Byte[],System.Int32,System.Int32,System.Char[],System.Int32)">
652 <summary>Decodes a sequence of bytes from the specified byte array into the specified character array.</summary>
653 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
654 <param name="byteIndex">The index of the first byte to decode.</param>
655 <param name="byteCount">The number of bytes to decode.</param>
656 <param name="chars">The character array to contain the resulting set of characters.</param>
657 <param name="charIndex">The index at which to start writing the resulting set of characters.</param>
658 <returns>The actual number of characters written into <paramref name="chars">chars</paramref>.</returns>
659 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.
661 <paramref name="chars">chars</paramref> is null.</exception>
662 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteIndex">byteIndex</paramref> or <paramref name="byteCount">byteCount</paramref> or <paramref name="charIndex">charIndex</paramref> is less than zero.
664 <paramref name="byteindex">byteindex</paramref> and <paramref name="byteCount">byteCount</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.
666 <paramref name="charIndex">charIndex</paramref> is not a valid index in <paramref name="chars">chars</paramref>.</exception>
667 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.
669 <paramref name="chars">chars</paramref> does not have enough capacity from <paramref name="charIndex">charIndex</paramref> to the end of the array to accommodate the resulting characters.</exception>
670 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
672 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
674 <member name="M:System.Text.UTF32Encoding.GetDecoder">
675 <summary>Obtains a decoder that converts a UTF-32 encoded sequence of bytes into a sequence of Unicode characters.</summary>
676 <returns>A <see cref="System.Text.Decoder"></see> that converts a UTF-32 encoded sequence of bytes into a sequence of Unicode characters.</returns>
678 <member name="M:System.Text.UTF32Encoding.GetEncoder">
679 <summary>Obtains an encoder that converts a sequence of Unicode characters into a UTF-32 encoded sequence of bytes.</summary>
680 <returns>A <see cref="System.Text.Encoder"></see> that converts a sequence of Unicode characters into a UTF-32 encoded sequence of bytes.</returns>
682 <member name="M:System.Text.UTF32Encoding.GetHashCode">
683 <summary>Returns the hash code for the current instance.</summary>
684 <returns>The hash code for the current <see cref="System.Text.UTF32Encoding"></see> object.</returns>
686 <member name="M:System.Text.UTF32Encoding.GetMaxByteCount(System.Int32)">
687 <summary>Calculates the maximum number of bytes produced by encoding the specified number of characters.</summary>
688 <param name="charCount">The number of characters to encode.</param>
689 <returns>The maximum number of bytes produced by encoding the specified number of characters.</returns>
690 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charCount">charCount</paramref> is less than zero.
692 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
693 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
695 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
697 <member name="M:System.Text.UTF32Encoding.GetMaxCharCount(System.Int32)">
698 <summary>Calculates the maximum number of characters produced by decoding the specified number of bytes.</summary>
699 <param name="byteCount">The number of bytes to decode.</param>
700 <returns>The maximum number of characters produced by decoding the specified number of bytes.</returns>
701 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteCount">byteCount</paramref> is less than zero.
703 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
704 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
706 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
708 <member name="M:System.Text.UTF32Encoding.GetPreamble">
709 <summary>Returns a Unicode byte order mark encoded in UTF-32 format, if the <see cref="T:System.Text.UTF32Encoding"></see> object is configured to supply one.</summary>
710 <returns>A byte array containing the Unicode byte order mark, if the <see cref="System.Text.UTF32Encoding"></see> object is configured to supply one. Otherwise, this method returns a zero-length byte array.</returns>
712 <member name="M:System.Text.UTF32Encoding.GetString(System.Byte[],System.Int32,System.Int32)">
713 <summary>Decodes a range of bytes from a byte array into a string.</summary>
714 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
715 <param name="index">The index of the first byte to decode.</param>
716 <param name="count">The number of bytes to decode.</param>
717 <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
718 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.</exception>
719 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
721 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.</exception>
722 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.</exception>
723 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for a complete explanation)
725 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
727 <member name="T:System.Text.UTF7Encoding">
728 <summary>Represents a UTF-7 encoding of Unicode characters.</summary>
730 <member name="M:System.Text.UTF7Encoding.#ctor">
731 <summary>Initializes a new instance of the <see cref="T:System.Text.UTF7Encoding"></see> class.</summary>
733 <member name="M:System.Text.UTF7Encoding.#ctor(System.Boolean)">
734 <summary>Initializes a new instance of the <see cref="T:System.Text.UTF7Encoding"></see> class. A parameter specifies whether to allow optional characters.</summary>
735 <param name="allowOptionals">true to specify that optional characters are allowed; otherwise, false.</param>
737 <member name="M:System.Text.UTF7Encoding.Equals(System.Object)">
738 <summary>Gets a value indicating whether the specified object is equal to the current <see cref="T:System.Text.UTF7Encoding"></see> object.</summary>
739 <param name="value">An object to compare to the current <see cref="T:System.Text.UTF7Encoding"></see> object.</param>
740 <returns>true if <paramref name="value">value</paramref> is a <see cref="System.Text.UTF7Encoding"></see> object and is equal to the current <see cref="System.Text.UTF7Encoding"></see> object; otherwise, false.</returns>
742 <member name="M:System.Text.UTF7Encoding.GetByteCount(System.String)">
743 <summary>Calculates the number of bytes produced by encoding the characters in the specified <see cref="T:System.String"></see> object.</summary>
744 <param name="s">The <see cref="T:System.String"></see> object containing the set of characters to encode.</param>
745 <returns>The number of bytes produced by encoding the specified characters.</returns>
746 <exception cref="T:System.ArgumentNullException"><paramref name="s">s</paramref> is null (Nothing).</exception>
747 <exception cref="T:System.ArgumentOutOfRangeException">The resulting number of bytes is greater than the maximum number that can be returned as an int.</exception>
748 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
750 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
752 <member name="M:System.Text.UTF7Encoding.GetByteCount(System.Char*,System.Int32)">
753 <summary>Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.</summary>
754 <param name="chars">A pointer to the first character to encode.</param>
755 <param name="count">The number of characters to encode.</param>
756 <returns>The number of bytes produced by encoding the specified characters.</returns>
757 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null (Nothing in Visual Basic .NET).</exception>
758 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="count">count</paramref> is less than zero.
760 The resulting number of bytes is greater than the maximum number that can be returned as an int.</exception>
761 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
763 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
765 <member name="M:System.Text.UTF7Encoding.GetByteCount(System.Char[],System.Int32,System.Int32)">
766 <summary>Calculates the number of bytes produced by encoding a set of characters from the specified character array.</summary>
767 <param name="chars">The character array containing the set of characters to encode.</param>
768 <param name="index">The index of the first character to encode.</param>
769 <param name="count">The number of characters to encode.</param>
770 <returns>The number of bytes produced by encoding the specified characters.</returns>
771 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null (Nothing).</exception>
772 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
774 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
776 The resulting number of bytes is greater than the maximum number that can be returned as an int.</exception>
777 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
779 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
781 <member name="M:System.Text.UTF7Encoding.GetBytes(System.Char*,System.Int32,System.Byte*,System.Int32)">
782 <summary>Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer.</summary>
783 <param name="chars">A pointer to the first character to encode.</param>
784 <param name="charCount">The number of characters to encode.</param>
785 <param name="bytes">A pointer to the location at which to start writing the resulting sequence of bytes.</param>
786 <param name="byteCount">The maximum number of bytes to write.</param>
787 <returns>The actual number of bytes written at the location indicated by <paramref name="bytes">bytes</paramref>.</returns>
788 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null (Nothing).
790 <paramref name="bytes">bytes</paramref> is null (Nothing).</exception>
791 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charCount">charCount</paramref> or <paramref name="byteCount">byteCount</paramref> is less than zero.</exception>
792 <exception cref="T:System.ArgumentException"><paramref name="byteCount">byteCount</paramref> is less than the resulting number of bytes.</exception>
793 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
795 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
797 <member name="M:System.Text.UTF7Encoding.GetBytes(System.Char[],System.Int32,System.Int32,System.Byte[],System.Int32)">
798 <summary>Encodes a set of characters from the specified character array into the specified byte array.</summary>
799 <param name="chars">The character array containing the set of characters to encode.</param>
800 <param name="charIndex">The index of the first character to encode.</param>
801 <param name="charCount">The number of characters to encode.</param>
802 <param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
803 <param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
804 <returns>The actual number of bytes written into <paramref name="bytes">bytes</paramref>.</returns>
805 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null (Nothing).
807 <paramref name="bytes">bytes</paramref> is null (Nothing).</exception>
808 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charIndex">charIndex</paramref> or <paramref name="charCount">charCount</paramref> or <paramref name="byteIndex">byteIndex</paramref> is less than zero.
810 <paramref name="charIndex">charIndex</paramref> and <paramref name="charCount">charCount</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
812 <paramref name="byteIndex">byteIndex</paramref> is not a valid index in <paramref name="bytes">bytes</paramref>.</exception>
813 <exception cref="T:System.ArgumentException"><paramref name="bytes">bytes</paramref> does not have enough capacity from <paramref name="byteIndex">byteIndex</paramref> to the end of the array to accommodate the resulting bytes.</exception>
814 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
816 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
818 <member name="M:System.Text.UTF7Encoding.GetBytes(System.String,System.Int32,System.Int32,System.Byte[],System.Int32)">
819 <summary>Encodes a set of characters from the specified <see cref="T:System.String"></see> into the specified byte array.</summary>
820 <param name="s">The <see cref="T:System.String"></see> containing the set of characters to encode.</param>
821 <param name="charIndex">The index of the first character to encode.</param>
822 <param name="charCount">The number of characters to encode.</param>
823 <param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
824 <param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
825 <returns>The actual number of bytes written into <paramref name="bytes">bytes</paramref>.</returns>
826 <exception cref="T:System.ArgumentNullException"><paramref name="s">s</paramref> is null (Nothing).
828 <paramref name="bytes">bytes</paramref> is null (Nothing).</exception>
829 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charIndex">charIndex</paramref> or <paramref name="charCount">charCount</paramref> or <paramref name="byteIndex">byteIndex</paramref> is less than zero.
831 <paramref name="charIndex">charIndex</paramref> and <paramref name="charCount">charCount</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
833 <paramref name="byteIndex">byteIndex</paramref> is not a valid index in <paramref name="bytes">bytes</paramref>.</exception>
834 <exception cref="T:System.ArgumentException"><paramref name="bytes">bytes</paramref> does not have enough capacity from <paramref name="byteIndex">byteIndex</paramref> to the end of the array to accommodate the resulting bytes.</exception>
835 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
837 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
839 <member name="M:System.Text.UTF7Encoding.GetCharCount(System.Byte[],System.Int32,System.Int32)">
840 <summary>Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.</summary>
841 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
842 <param name="index">The index of the first byte to decode.</param>
843 <param name="count">The number of bytes to decode.</param>
844 <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
845 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null (Nothing).</exception>
846 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
848 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.
850 The resulting number of characters is greater than the maximum number that can be returned as an int.</exception>
851 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
853 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
855 <member name="M:System.Text.UTF7Encoding.GetCharCount(System.Byte*,System.Int32)">
856 <summary>Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.</summary>
857 <param name="bytes">A pointer to the first byte to decode.</param>
858 <param name="count">The number of bytes to decode.</param>
859 <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
860 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null (Nothing).</exception>
861 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="count">count</paramref> is less than zero.
863 The resulting number of characters is greater than the maximum number that can be returned as an int.</exception>
864 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
866 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
868 <member name="M:System.Text.UTF7Encoding.GetChars(System.Byte*,System.Int32,System.Char*,System.Int32)">
869 <summary>Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer.</summary>
870 <param name="bytes">A pointer to the first byte to decode.</param>
871 <param name="byteCount">The number of bytes to decode.</param>
872 <param name="chars">A pointer to the location at which to start writing the resulting set of characters.</param>
873 <param name="charCount">The maximum number of characters to write.</param>
874 <returns>The actual number of characters written at the location indicated by <paramref name="chars">chars</paramref>.</returns>
875 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null (Nothing).
877 <paramref name="chars">chars</paramref> is null (Nothing).</exception>
878 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteCount">byteCount</paramref> or <paramref name="charCount">charCount</paramref> is less than zero.</exception>
879 <exception cref="T:System.ArgumentException"><paramref name="charCount">charCount</paramref> is less than the resulting number of characters.</exception>
880 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
882 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
884 <member name="M:System.Text.UTF7Encoding.GetChars(System.Byte[],System.Int32,System.Int32,System.Char[],System.Int32)">
885 <summary>Decodes a sequence of bytes from the specified byte array into the specified character array.</summary>
886 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
887 <param name="byteIndex">The index of the first byte to decode.</param>
888 <param name="byteCount">The number of bytes to decode.</param>
889 <param name="chars">The character array to contain the resulting set of characters.</param>
890 <param name="charIndex">The index at which to start writing the resulting set of characters.</param>
891 <returns>The actual number of characters written into <paramref name="chars">chars</paramref>.</returns>
892 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null (Nothing).
894 <paramref name="chars">chars</paramref> is null (Nothing).</exception>
895 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteIndex">byteIndex</paramref> or <paramref name="byteCount">byteCount</paramref> or <paramref name="charIndex">charIndex</paramref> is less than zero.
897 <paramref name="byteindex">byteindex</paramref> and <paramref name="byteCount">byteCount</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.
899 <paramref name="charIndex">charIndex</paramref> is not a valid index in <paramref name="chars">chars</paramref>.</exception>
900 <exception cref="T:System.ArgumentException"><paramref name="chars">chars</paramref> does not have enough capacity from <paramref name="charIndex">charIndex</paramref> to the end of the array to accommodate the resulting characters.</exception>
901 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
903 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
905 <member name="M:System.Text.UTF7Encoding.GetDecoder">
906 <summary>Obtains a decoder that converts a UTF-7 encoded sequence of bytes into a sequence of Unicode characters.</summary>
907 <returns>A <see cref="System.Text.Decoder"></see> that converts a UTF-7 encoded sequence of bytes into a sequence of Unicode characters.</returns>
909 <member name="M:System.Text.UTF7Encoding.GetEncoder">
910 <summary>Obtains an encoder that converts a sequence of Unicode characters into a UTF-7 encoded sequence of bytes.</summary>
911 <returns>A <see cref="System.Text.Encoder"></see> that converts a sequence of Unicode characters into a UTF-7 encoded sequence of bytes.</returns>
913 <member name="M:System.Text.UTF7Encoding.GetHashCode">
914 <summary>Returns the hash code for the current <see cref="T:System.Text.UTF7Encoding"></see> object.</summary>
915 <returns>A 32-bit signed integer hash code.</returns>
917 <member name="M:System.Text.UTF7Encoding.GetMaxByteCount(System.Int32)">
918 <summary>Calculates the maximum number of bytes produced by encoding the specified number of characters.</summary>
919 <param name="charCount">The number of characters to encode.</param>
920 <returns>The maximum number of bytes produced by encoding the specified number of characters.</returns>
921 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charCount">charCount</paramref> is less than zero.
923 The resulting number of bytes is greater than the maximum number that can be returned as an int.</exception>
924 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
926 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
928 <member name="M:System.Text.UTF7Encoding.GetMaxCharCount(System.Int32)">
929 <summary>Calculates the maximum number of characters produced by decoding the specified number of bytes.</summary>
930 <param name="byteCount">The number of bytes to decode.</param>
931 <returns>The maximum number of characters produced by decoding the specified number of bytes.</returns>
932 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteCount">byteCount</paramref> is less than zero.
934 The resulting number of characters is greater than the maximum number that can be returned as an int.</exception>
935 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
937 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
939 <member name="M:System.Text.UTF7Encoding.GetString(System.Byte[],System.Int32,System.Int32)">
940 <summary>Decodes a range of bytes from a byte array into a string.</summary>
941 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
942 <param name="index">The index of the first byte to decode.</param>
943 <param name="count">The number of bytes to decode.</param>
944 <returns>A <see cref="System.String"></see> containing the results of decoding the specified sequence of bytes.</returns>
945 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null (Nothing).</exception>
946 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
948 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.</exception>
949 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
951 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
953 <member name="T:System.Text.UTF8Encoding">
954 <summary>Represents a UTF-8 encoding of Unicode characters.</summary>
956 <member name="M:System.Text.UTF8Encoding.#ctor">
957 <summary>Initializes a new instance of the <see cref="T:System.Text.UTF8Encoding"></see> class.</summary>
959 <member name="M:System.Text.UTF8Encoding.#ctor(System.Boolean)">
960 <summary>Initializes a new instance of the <see cref="T:System.Text.UTF8Encoding"></see> class. A parameter specifies whether to provide a Unicode byte order mark.</summary>
961 <param name="encoderShouldEmitUTF8Identifier">true to specify that the <see cref="M:System.Text.UTF8Encoding.GetPreamble"></see> method returns a Unicode byte order mark; otherwise, false.</param>
963 <member name="M:System.Text.UTF8Encoding.#ctor(System.Boolean,System.Boolean)">
964 <summary>Initializes a new instance of the <see cref="T:System.Text.UTF8Encoding"></see> class. Parameters specify whether to provide a Unicode byte order mark and whether to throw an exception when an invalid encoding is detected.</summary>
965 <param name="encoderShouldEmitUTF8Identifier">true to specify that the <see cref="M:System.Text.UTF8Encoding.GetPreamble"></see> method should return a Unicode byte order mark; otherwise, false.</param>
966 <param name="throwOnInvalidBytes">true to throw an exception when an invalid encoding is detected; otherwise, false.</param>
968 <member name="M:System.Text.UTF8Encoding.Equals(System.Object)">
969 <summary>Determines whether the specified object is equal to the current <see cref="T:System.Text.UTF8Encoding"></see> object.</summary>
970 <param name="value">The object to compare with the current instance.</param>
971 <returns>true if <paramref name="value">value</paramref> is an instance of <see cref="System.Text.UTF8Encoding"></see> and is equal to the current object; otherwise, false.</returns>
973 <member name="M:System.Text.UTF8Encoding.GetByteCount(System.String)">
974 <summary>Calculates the number of bytes produced by encoding the characters in the specified <see cref="T:System.String"></see>.</summary>
975 <param name="chars">The <see cref="T:System.String"></see> containing the set of characters to encode.</param>
976 <returns>The number of bytes produced by encoding the specified characters.</returns>
977 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.</exception>
978 <exception cref="T:System.ArgumentOutOfRangeException">The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
979 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars">chars</paramref> contains an invalid sequence of characters.</exception>
980 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
982 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
984 <member name="M:System.Text.UTF8Encoding.GetByteCount(System.Char*,System.Int32)">
985 <summary>Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.</summary>
986 <param name="chars">A pointer to the first character to encode.</param>
987 <param name="count">The number of characters to encode.</param>
988 <returns>The number of bytes produced by encoding the specified characters.</returns>
989 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.</exception>
990 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="count">count</paramref> is less than zero.
992 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
993 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars">chars</paramref> contains an invalid sequence of characters.</exception>
994 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for a complete explanation)
996 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
998 <member name="M:System.Text.UTF8Encoding.GetByteCount(System.Char[],System.Int32,System.Int32)">
999 <summary>Calculates the number of bytes produced by encoding a set of characters from the specified character array.</summary>
1000 <param name="chars">The character array containing the set of characters to encode.</param>
1001 <param name="index">The index of the first character to encode.</param>
1002 <param name="count">The number of characters to encode.</param>
1003 <returns>The number of bytes produced by encoding the specified characters.</returns>
1004 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.</exception>
1005 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
1007 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
1009 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
1010 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars">chars</paramref> contains an invalid sequence of characters.</exception>
1011 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
1013 The <see cref="System.Text.Encoding.EncoderFallback"></see> property is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
1015 <member name="M:System.Text.UTF8Encoding.GetBytes(System.Char*,System.Int32,System.Byte*,System.Int32)">
1016 <summary>Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer.</summary>
1017 <param name="chars">A pointer to the first character to encode.</param>
1018 <param name="charCount">The number of characters to encode.</param>
1019 <param name="bytes">A pointer to the location at which to start writing the resulting sequence of bytes.</param>
1020 <param name="byteCount">The maximum number of bytes to write.</param>
1021 <returns>The actual number of bytes written at the location indicated by <paramref name="bytes">bytes</paramref>.</returns>
1022 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.
1024 <paramref name="bytes">bytes</paramref> is null.</exception>
1025 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charCount">charCount</paramref> or <paramref name="byteCount">byteCount</paramref> is less than zero.</exception>
1026 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars">chars</paramref> contains an invalid sequence of characters.
1028 <paramref name="byteCount">byteCount</paramref> is less than the resulting number of bytes.</exception>
1029 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
1031 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
1033 <member name="M:System.Text.UTF8Encoding.GetBytes(System.Char[],System.Int32,System.Int32,System.Byte[],System.Int32)">
1034 <summary>Encodes a set of characters from the specified character array into the specified byte array.</summary>
1035 <param name="chars">The character array containing the set of characters to encode.</param>
1036 <param name="charIndex">The index of the first character to encode.</param>
1037 <param name="charCount">The number of characters to encode.</param>
1038 <param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
1039 <param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
1040 <returns>The actual number of bytes written into <paramref name="bytes">bytes</paramref>.</returns>
1041 <exception cref="T:System.ArgumentNullException"><paramref name="chars">chars</paramref> is null.
1043 <paramref name="bytes">bytes</paramref> is null.</exception>
1044 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charIndex">charIndex</paramref> or <paramref name="charCount">charCount</paramref> or <paramref name="byteIndex">byteIndex</paramref> is less than zero.
1046 <paramref name="charIndex">charIndex</paramref> and <paramref name="charCount">charCount</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
1048 <paramref name="byteIndex">byteIndex</paramref> is not a valid index in <paramref name="bytes">bytes</paramref>.</exception>
1049 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars">chars</paramref> contains an invalid sequence of characters.
1051 <paramref name="bytes">bytes</paramref> does not have enough capacity from <paramref name="byteIndex">byteIndex</paramref> to the end of the array to accommodate the resulting bytes.</exception>
1052 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
1054 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
1056 <member name="M:System.Text.UTF8Encoding.GetBytes(System.String,System.Int32,System.Int32,System.Byte[],System.Int32)">
1057 <summary>Encodes a set of characters from the specified <see cref="T:System.String"></see> into the specified byte array.</summary>
1058 <param name="s">The <see cref="T:System.String"></see> containing the set of characters to encode.</param>
1059 <param name="charIndex">The index of the first character to encode.</param>
1060 <param name="charCount">The number of characters to encode.</param>
1061 <param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
1062 <param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
1063 <returns>The actual number of bytes written into <paramref name="bytes">bytes</paramref>.</returns>
1064 <exception cref="T:System.ArgumentNullException"><paramref name="s">s</paramref> is null.
1066 <paramref name="bytes">bytes</paramref> is null.</exception>
1067 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charIndex">charIndex</paramref> or <paramref name="charCount">charCount</paramref> or <paramref name="byteIndex">byteIndex</paramref> is less than zero.
1069 <paramref name="charIndex">charIndex</paramref> and <paramref name="charCount">charCount</paramref> do not denote a valid range in <paramref name="chars">chars</paramref>.
1071 <paramref name="byteIndex">byteIndex</paramref> is not a valid index in <paramref name="bytes">bytes</paramref>.</exception>
1072 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="s">s</paramref> contains an invalid sequence of characters.
1074 <paramref name="bytes">bytes</paramref> does not have enough capacity from <paramref name="byteIndex">byteIndex</paramref> to the end of the array to accommodate the resulting bytes.</exception>
1075 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
1077 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
1079 <member name="M:System.Text.UTF8Encoding.GetCharCount(System.Byte[],System.Int32,System.Int32)">
1080 <summary>Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.</summary>
1081 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
1082 <param name="index">The index of the first byte to decode.</param>
1083 <param name="count">The number of bytes to decode.</param>
1084 <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
1085 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.</exception>
1086 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
1088 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.
1090 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
1091 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.</exception>
1092 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
1094 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
1096 <member name="M:System.Text.UTF8Encoding.GetCharCount(System.Byte*,System.Int32)">
1097 <summary>Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.</summary>
1098 <param name="bytes">A pointer to the first byte to decode.</param>
1099 <param name="count">The number of bytes to decode.</param>
1100 <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
1101 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.</exception>
1102 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="count">count</paramref> is less than zero.
1104 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
1105 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.</exception>
1106 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
1108 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
1110 <member name="M:System.Text.UTF8Encoding.GetChars(System.Byte*,System.Int32,System.Char*,System.Int32)">
1111 <summary>Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer.</summary>
1112 <param name="bytes">A pointer to the first byte to decode.</param>
1113 <param name="byteCount">The number of bytes to decode.</param>
1114 <param name="chars">A pointer to the location at which to start writing the resulting set of characters.</param>
1115 <param name="charCount">The maximum number of characters to write.</param>
1116 <returns>The actual number of characters written at the location indicated by <paramref name="chars">chars</paramref>.</returns>
1117 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.
1119 <paramref name="chars">chars</paramref> is null.</exception>
1120 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteCount">byteCount</paramref> or <paramref name="charCount">charCount</paramref> is less than zero.</exception>
1121 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.
1123 <paramref name="charCount">charCount</paramref> is less than the resulting number of characters.</exception>
1124 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
1126 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
1128 <member name="M:System.Text.UTF8Encoding.GetChars(System.Byte[],System.Int32,System.Int32,System.Char[],System.Int32)">
1129 <summary>Decodes a sequence of bytes from the specified byte array into the specified character array.</summary>
1130 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
1131 <param name="byteIndex">The index of the first byte to decode.</param>
1132 <param name="byteCount">The number of bytes to decode.</param>
1133 <param name="chars">The character array to contain the resulting set of characters.</param>
1134 <param name="charIndex">The index at which to start writing the resulting set of characters.</param>
1135 <returns>The actual number of characters written into <paramref name="chars">chars</paramref>.</returns>
1136 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.
1138 <paramref name="chars">chars</paramref> is null.</exception>
1139 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteIndex">byteIndex</paramref> or <paramref name="byteCount">byteCount</paramref> or <paramref name="charIndex">charIndex</paramref> is less than zero.
1141 <paramref name="byteindex">byteindex</paramref> and <paramref name="byteCount">byteCount</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.
1143 <paramref name="charIndex">charIndex</paramref> is not a valid index in <paramref name="chars">chars</paramref>.</exception>
1144 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.
1146 <paramref name="chars">chars</paramref> does not have enough capacity from <paramref name="charIndex">charIndex</paramref> to the end of the array to accommodate the resulting characters.</exception>
1147 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
1149 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
1151 <member name="M:System.Text.UTF8Encoding.GetDecoder">
1152 <summary>Obtains a decoder that converts a UTF-8 encoded sequence of bytes into a sequence of Unicode characters.</summary>
1153 <returns>A decoder that converts a UTF-8 encoded sequence of bytes into a sequence of Unicode characters.</returns>
1155 <member name="M:System.Text.UTF8Encoding.GetEncoder">
1156 <summary>Obtains an encoder that converts a sequence of Unicode characters into a UTF-8 encoded sequence of bytes.</summary>
1157 <returns>A <see cref="System.Text.Encoder"></see> that converts a sequence of Unicode characters into a UTF-8 encoded sequence of bytes.</returns>
1159 <member name="M:System.Text.UTF8Encoding.GetHashCode">
1160 <summary>Returns the hash code for the current instance.</summary>
1161 <returns>The hash code for the current instance.</returns>
1163 <member name="M:System.Text.UTF8Encoding.GetMaxByteCount(System.Int32)">
1164 <summary>Calculates the maximum number of bytes produced by encoding the specified number of characters.</summary>
1165 <param name="charCount">The number of characters to encode.</param>
1166 <returns>The maximum number of bytes produced by encoding the specified number of characters.</returns>
1167 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="charCount">charCount</paramref> is less than zero.
1169 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
1170 <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
1172 <see cref="System.Text.Encoding.EncoderFallback"></see> is set to <see cref="System.Text.EncoderExceptionFallback"></see>.</exception>
1174 <member name="M:System.Text.UTF8Encoding.GetMaxCharCount(System.Int32)">
1175 <summary>Calculates the maximum number of characters produced by decoding the specified number of bytes.</summary>
1176 <param name="byteCount">The number of bytes to decode.</param>
1177 <returns>The maximum number of characters produced by decoding the specified number of bytes.</returns>
1178 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="byteCount">byteCount</paramref> is less than zero.
1180 The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
1181 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
1183 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>
1185 <member name="M:System.Text.UTF8Encoding.GetPreamble">
1186 <summary>Returns a Unicode byte order mark encoded in UTF-8 format, if the <see cref="T:System.Text.UTF8Encoding"></see> encoding object is configured to supply one.</summary>
1187 <returns>A byte array containing the Unicode byte order mark, if the <see cref="System.Text.UTF8Encoding"></see> encoding object is configured to supply one. Otherwise, this method returns a zero-length byte array.</returns>
1189 <member name="M:System.Text.UTF8Encoding.GetString(System.Byte[],System.Int32,System.Int32)">
1190 <summary>Decodes a range of bytes from a byte array into a string.</summary>
1191 <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
1192 <param name="index">The index of the first byte to decode.</param>
1193 <param name="count">The number of bytes to decode.</param>
1194 <returns>A <see cref="System.String"></see> containing the results of decoding the specified sequence of bytes.</returns>
1195 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null.</exception>
1196 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> or <paramref name="count">count</paramref> is less than zero.
1198 <paramref name="index">index</paramref> and <paramref name="count">count</paramref> do not denote a valid range in <paramref name="bytes">bytes</paramref>.</exception>
1199 <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes">bytes</paramref> contains an invalid sequence of bytes.</exception>
1200 <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
1202 <see cref="System.Text.Encoding.DecoderFallback"></see> is set to <see cref="System.Text.DecoderExceptionFallback"></see>.</exception>