<summary>Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.</summary>
<param name="chars">A pointer to the first character to encode.</param>
<param name="count">The number of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="count" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <paramref name="count" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.ASCIIEncoding.GetByteCount(System.Char[],System.Int32,System.Int32)">
<summary>Calculates the number of bytes produced by encoding a set of characters from the specified character array.</summary>
<param name="chars">The character array containing the set of characters to encode.</param>
<param name="index">The index of the first character to encode.</param>
<param name="count">The number of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.ASCIIEncoding.GetByteCount(System.ReadOnlySpan{System.Char})">
<summary>Calculates the number of bytes produced by encoding the specified character span.</summary>
<member name="M:System.Text.ASCIIEncoding.GetByteCount(System.String)">
<summary>Calculates the number of bytes produced by encoding the characters in the specified <see cref="T:System.String" />.</summary>
<param name="chars">The <see cref="T:System.String" /> containing the set of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.ASCIIEncoding.GetBytes(System.Char*,System.Int32,System.Byte*,System.Int32)">
<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>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">A pointer to the location at which to start writing the resulting sequence of bytes.</param>
<param name="byteCount">The maximum number of bytes to write.</param>
+ <returns>The actual number of bytes written at the location indicated by <paramref name="bytes" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="chars" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" />.</exception>
+ <paramref name="chars" /> is <see langword="null" />.
+-or-
+<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="charCount" /> or <paramref name="byteCount" /> is less than zero.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="byteCount" /> is less than the resulting number of bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written at the location indicated by <paramref name="bytes" />.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.ASCIIEncoding.GetBytes(System.Char[],System.Int32,System.Int32,System.Byte[],System.Int32)">
<summary>Encodes a set of characters from the specified character array into the specified byte array.</summary>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
<param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
+ <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="chars" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" />.</exception>
+ <paramref name="chars" /> is <see langword="null" />.
+-or-
+<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
-
- -or-
-
- <paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- <paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
+ <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
+-or-
+<paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+<paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.ASCIIEncoding.GetBytes(System.ReadOnlySpan{System.Char},System.Span{System.Byte})">
<summary>Encodes the specified character span into the specified byte span.</summary>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
<param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
+ <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="s" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" />.</exception>
+ <paramref name="s" /> is <see langword="null" />.
+-or-
+<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
-
- -or-
-
- <paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- <paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
+ <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
+-or-
+<paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+<paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.ASCIIEncoding.GetCharCount(System.Byte*,System.Int32)">
<summary>Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.</summary>
<param name="bytes">A pointer to the first byte to decode.</param>
<param name="count">The number of bytes to decode.</param>
+ <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="count" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
+ <paramref name="count" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.ASCIIEncoding.GetCharCount(System.Byte[],System.Int32,System.Int32)">
<summary>Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.</summary>
<param name="bytes">The byte array containing the sequence of bytes to decode.</param>
<param name="index">The index of the first byte to decode.</param>
<param name="count">The number of bytes to decode.</param>
+ <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.ASCIIEncoding.GetCharCount(System.ReadOnlySpan{System.Byte})">
<summary>Calculates the number of characters produced by decoding the specified byte span.</summary>
<param name="byteCount">The number of bytes to decode.</param>
<param name="chars">A pointer to the location at which to start writing the resulting set of characters.</param>
<param name="charCount">The maximum number of characters to write.</param>
+ <returns>The actual number of characters written at the location indicated by <paramref name="chars" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="bytes" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="chars" /> is <see langword="null" />.</exception>
+ <paramref name="bytes" /> is <see langword="null" />.
+-or-
+<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="byteCount" /> or <paramref name="charCount" /> is less than zero.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="charCount" /> is less than the resulting number of characters.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The actual number of characters written at the location indicated by <paramref name="chars" />.</returns>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.ASCIIEncoding.GetChars(System.Byte[],System.Int32,System.Int32,System.Char[],System.Int32)">
<summary>Decodes a sequence of bytes from the specified byte array into the specified character array.</summary>
<param name="byteCount">The number of bytes to decode.</param>
<param name="chars">The character array to contain the resulting set of characters.</param>
<param name="charIndex">The index at which to start writing the resulting set of characters.</param>
+ <returns>The actual number of characters written into <paramref name="chars" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="bytes" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="chars" /> is <see langword="null" />.</exception>
+ <paramref name="bytes" /> is <see langword="null" />.
+-or-
+<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="byteIndex" /> or <paramref name="byteCount" /> or <paramref name="charIndex" /> is less than zero.
-
- -or-
-
- <paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
-
- -or-
-
- <paramref name="charIndex" /> is not a valid index in <paramref name="chars" />.</exception>
+ <paramref name="byteIndex" /> or <paramref name="byteCount" /> or <paramref name="charIndex" /> is less than zero.
+-or-
+<paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
+-or-
+<paramref name="charIndex" /> is not a valid index in <paramref name="chars" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="chars" /> does not have enough capacity from <paramref name="charIndex" /> to the end of the array to accommodate the resulting characters.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The actual number of characters written into <paramref name="chars" />.</returns>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.ASCIIEncoding.GetChars(System.ReadOnlySpan{System.Byte},System.Span{System.Char})">
<summary>Decodes the specified byte span into the specified character span.</summary>
<member name="M:System.Text.ASCIIEncoding.GetMaxByteCount(System.Int32)">
<summary>Calculates the maximum number of bytes produced by encoding the specified number of characters.</summary>
<param name="charCount">The number of characters to encode.</param>
- <exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charCount" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<returns>The maximum number of bytes produced by encoding the specified number of characters.</returns>
+ <exception cref="T:System.ArgumentOutOfRangeException">
+ <paramref name="charCount" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
</member>
<member name="M:System.Text.ASCIIEncoding.GetMaxCharCount(System.Int32)">
<summary>Calculates the maximum number of characters produced by decoding the specified number of bytes.</summary>
<param name="byteCount">The number of bytes to decode.</param>
- <exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="byteCount" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<returns>The maximum number of characters produced by decoding the specified number of bytes.</returns>
+ <exception cref="T:System.ArgumentOutOfRangeException">
+ <paramref name="byteCount" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
</member>
<member name="M:System.Text.ASCIIEncoding.GetString(System.Byte[],System.Int32,System.Int32)">
<summary>Decodes a range of bytes from a byte array into a string.</summary>
<param name="bytes">The byte array containing the sequence of bytes to decode.</param>
<param name="byteIndex">The index of the first byte to decode.</param>
<param name="byteCount">The number of bytes to decode.</param>
+ <returns>A <see cref="T:System.String" /> containing the results of decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>A <see cref="T:System.String" /> containing the results of decoding the specified sequence of bytes.</returns>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="P:System.Text.ASCIIEncoding.IsSingleByte">
<summary>Gets a value indicating whether the current encoding uses single-byte code points.</summary>
<member name="T:System.Text.UnicodeEncoding">
<summary>Represents a UTF-16 encoding of Unicode characters.</summary>
</member>
- <member name="F:System.Text.UnicodeEncoding.CharSize">
- <summary>Represents the Unicode character size in bytes. This field is a constant.</summary>
- </member>
<member name="M:System.Text.UnicodeEncoding.#ctor">
<summary>Initializes a new instance of the <see cref="T:System.Text.UnicodeEncoding" /> class.</summary>
</member>
<param name="throwOnInvalidBytes">
<see langword="true" /> to specify that an exception should be thrown when an invalid encoding is detected; otherwise, <see langword="false" />.</param>
</member>
+ <member name="F:System.Text.UnicodeEncoding.CharSize">
+ <summary>Represents the Unicode character size in bytes. This field is a constant.</summary>
+ </member>
<member name="M:System.Text.UnicodeEncoding.Equals(System.Object)">
<summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Text.UnicodeEncoding" /> object.</summary>
<param name="value">The object to compare with the current object.</param>
<summary>Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.</summary>
<param name="chars">A pointer to the first character to encode.</param>
<param name="count">The number of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="count" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <paramref name="count" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled and <paramref name="chars" /> contains an invalid sequence of characters.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UnicodeEncoding.GetByteCount(System.Char[],System.Int32,System.Int32)">
<summary>Calculates the number of bytes produced by encoding a set of characters from the specified character array.</summary>
<param name="chars">The character array containing the set of characters to encode.</param>
<param name="index">The index of the first character to encode.</param>
<param name="count">The number of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UnicodeEncoding.GetByteCount(System.String)">
<summary>Calculates the number of bytes produced by encoding the characters in the specified string.</summary>
<param name="s">The string that contains the set of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="s" /> contains an invalid sequence of characters.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UnicodeEncoding.GetBytes(System.Char*,System.Int32,System.Byte*,System.Int32)">
<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>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">A pointer to the location at which to start writing the resulting sequence of bytes.</param>
<param name="byteCount">The maximum number of bytes to write.</param>
+ <returns>The actual number of bytes written at the location indicated by the <paramref name="bytes" /> parameter.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
+ <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).
+-or-
+<paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="charCount" /> or <paramref name="byteCount" /> is less than zero.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.
-
- -or-
-
- <paramref name="byteCount" /> is less than the resulting number of bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written at the location indicated by the <paramref name="bytes" /> parameter.</returns>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.
+-or-
+<paramref name="byteCount" /> is less than the resulting number of bytes.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UnicodeEncoding.GetBytes(System.Char[],System.Int32,System.Int32,System.Byte[],System.Int32)">
<summary>Encodes a set of characters from the specified character array into the specified byte array.</summary>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
<param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
+ <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
+ <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).
+-or-
+<paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
-
- -or-
-
- <paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- <paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.
-
- -or-
-
- <paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
+ <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
+-or-
+<paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+<paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.
+-or-
+<paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UnicodeEncoding.GetBytes(System.String,System.Int32,System.Int32,System.Byte[],System.Int32)">
<summary>Encodes a set of characters from the specified <see cref="T:System.String" /> into the specified byte array.</summary>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
<param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
+ <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="s" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
+ <paramref name="s" /> is <see langword="null" />.
+-or-
+<paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
-
- -or-
-
- <paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- <paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="s" /> contains an invalid sequence of characters.
-
- -or-
-
- <paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
+ <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
+-or-
+<paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+<paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="s" /> contains an invalid sequence of characters.
+-or-
+<paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UnicodeEncoding.GetCharCount(System.Byte*,System.Int32)">
<summary>Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.</summary>
<param name="bytes">A pointer to the first byte to decode.</param>
<param name="count">The number of bytes to decode.</param>
+ <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="count" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <paramref name="count" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UnicodeEncoding.GetCharCount(System.Byte[],System.Int32,System.Int32)">
<summary>Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.</summary>
<param name="bytes">The byte array containing the sequence of bytes to decode.</param>
<param name="index">The index of the first byte to decode.</param>
<param name="count">The number of bytes to decode.</param>
+ <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UnicodeEncoding.GetChars(System.Byte*,System.Int32,System.Char*,System.Int32)">
<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>
<param name="byteCount">The number of bytes to decode.</param>
<param name="chars">A pointer to the location at which to start writing the resulting set of characters.</param>
<param name="charCount">The maximum number of characters to write.</param>
+ <returns>The actual number of characters written at the location indicated by the <paramref name="chars" /> parameter.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).
-
- -or-
-
- <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
+ <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).
+-or-
+<paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="byteCount" /> or <paramref name="charCount" /> is less than zero.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.
-
- -or-
-
- <paramref name="charCount" /> is less than the resulting number of characters.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The actual number of characters written at the location indicated by the <paramref name="chars" /> parameter.</returns>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.
+-or-
+<paramref name="charCount" /> is less than the resulting number of characters.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UnicodeEncoding.GetChars(System.Byte[],System.Int32,System.Int32,System.Char[],System.Int32)">
<summary>Decodes a sequence of bytes from the specified byte array into the specified character array.</summary>
<param name="byteCount">The number of bytes to decode.</param>
<param name="chars">The character array to contain the resulting set of characters.</param>
<param name="charIndex">The index at which to start writing the resulting set of characters.</param>
+ <returns>The actual number of characters written into <paramref name="chars" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).
-
- -or-
-
- <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
+ <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).
+-or-
+<paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="byteIndex" /> or <paramref name="byteCount" /> or <paramref name="charIndex" /> is less than zero.
-
- -or-
-
- <paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
-
- -or-
-
- <paramref name="charIndex" /> is not a valid index in <paramref name="chars" />.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.
-
- -or-
-
- <paramref name="chars" /> does not have enough capacity from <paramref name="charIndex" /> to the end of the array to accommodate the resulting characters.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The actual number of characters written into <paramref name="chars" />.</returns>
+ <paramref name="byteIndex" /> or <paramref name="byteCount" /> or <paramref name="charIndex" /> is less than zero.
+-or-
+<paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
+-or-
+<paramref name="charIndex" /> is not a valid index in <paramref name="chars" />.</exception>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.
+-or-
+<paramref name="chars" /> does not have enough capacity from <paramref name="charIndex" /> to the end of the array to accommodate the resulting characters.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UnicodeEncoding.GetDecoder">
<summary>Obtains a decoder that converts a UTF-16 encoded sequence of bytes into a sequence of Unicode characters.</summary>
<member name="M:System.Text.UnicodeEncoding.GetMaxByteCount(System.Int32)">
<summary>Calculates the maximum number of bytes produced by encoding the specified number of characters.</summary>
<param name="charCount">The number of characters to encode.</param>
- <exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charCount" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
<returns>The maximum number of bytes produced by encoding the specified number of characters.</returns>
+ <exception cref="T:System.ArgumentOutOfRangeException">
+ <paramref name="charCount" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UnicodeEncoding.GetMaxCharCount(System.Int32)">
<summary>Calculates the maximum number of characters produced by decoding the specified number of bytes.</summary>
<param name="byteCount">The number of bytes to decode.</param>
- <exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="byteCount" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
<returns>The maximum number of characters produced by decoding the specified number of bytes.</returns>
+ <exception cref="T:System.ArgumentOutOfRangeException">
+ <paramref name="byteCount" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UnicodeEncoding.GetPreamble">
<summary>Returns a Unicode byte order mark encoded in UTF-16 format, if the constructor for this instance requests a byte order mark.</summary>
<param name="bytes">The byte array containing the sequence of bytes to decode.</param>
<param name="index">The index of the first byte to decode.</param>
<param name="count">The number of bytes to decode.</param>
+ <returns>A <see cref="T:System.String" /> object containing the results of decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.</exception>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>A <see cref="T:System.String" /> object containing the results of decoding the specified sequence of bytes.</returns>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="P:System.Text.UnicodeEncoding.Preamble">
<summary>Gets a Unicode byte order mark encoded in UTF-16 format, if this object is configured to supply one.</summary>
<summary>Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.</summary>
<param name="chars">A pointer to the first character to encode.</param>
<param name="count">The number of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="count" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <paramref name="count" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF32Encoding.GetByteCount(System.Char[],System.Int32,System.Int32)">
<summary>Calculates the number of bytes produced by encoding a set of characters from the specified character array.</summary>
<param name="chars">The character array containing the set of characters to encode.</param>
<param name="index">The index of the first character to encode.</param>
<param name="count">The number of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF32Encoding.GetByteCount(System.String)">
<summary>Calculates the number of bytes produced by encoding the characters in the specified <see cref="T:System.String" />.</summary>
<param name="s">The <see cref="T:System.String" /> containing the set of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="s" /> contains an invalid sequence of characters.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF32Encoding.GetBytes(System.Char*,System.Int32,System.Byte*,System.Int32)">
<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>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">A pointer to the location at which to start writing the resulting sequence of bytes.</param>
<param name="byteCount">The maximum number of bytes to write.</param>
+ <returns>The actual number of bytes written at the location indicated by the <paramref name="bytes" /> parameter.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="chars" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" />.</exception>
+ <paramref name="chars" /> is <see langword="null" />.
+-or-
+<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="charCount" /> or <paramref name="byteCount" /> is less than zero.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.
-
- -or-
-
- <paramref name="byteCount" /> is less than the resulting number of bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written at the location indicated by the <paramref name="bytes" /> parameter.</returns>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.
+-or-
+<paramref name="byteCount" /> is less than the resulting number of bytes.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF32Encoding.GetBytes(System.Char[],System.Int32,System.Int32,System.Byte[],System.Int32)">
<summary>Encodes a set of characters from the specified character array into the specified byte array.</summary>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
<param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
+ <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="chars" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" />.</exception>
+ <paramref name="chars" /> is <see langword="null" />.
+-or-
+<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
-
- -or-
-
- <paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- <paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.
-
- -or-
-
- <paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
+ <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
+-or-
+<paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+<paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.
+-or-
+<paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF32Encoding.GetBytes(System.String,System.Int32,System.Int32,System.Byte[],System.Int32)">
<summary>Encodes a set of characters from the specified <see cref="T:System.String" /> into the specified byte array.</summary>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
<param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
+ <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="s" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" />.</exception>
+ <paramref name="s" /> is <see langword="null" />.
+-or-
+<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
-
- -or-
-
- <paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- <paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="s" /> contains an invalid sequence of characters.
-
- -or-
-
- <paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
+ <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
+-or-
+<paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+<paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="s" /> contains an invalid sequence of characters.
+-or-
+<paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF32Encoding.GetCharCount(System.Byte*,System.Int32)">
<summary>Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.</summary>
<param name="bytes">A pointer to the first byte to decode.</param>
<param name="count">The number of bytes to decode.</param>
+ <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="count" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <paramref name="count" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF32Encoding.GetCharCount(System.Byte[],System.Int32,System.Int32)">
<summary>Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.</summary>
<param name="bytes">The byte array containing the sequence of bytes to decode.</param>
<param name="index">The index of the first byte to decode.</param>
<param name="count">The number of bytes to decode.</param>
+ <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF32Encoding.GetChars(System.Byte*,System.Int32,System.Char*,System.Int32)">
<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>
<param name="byteCount">The number of bytes to decode.</param>
<param name="chars">A pointer to the location at which to start writing the resulting set of characters.</param>
<param name="charCount">The maximum number of characters to write.</param>
+ <returns>The actual number of characters written at the location indicated by <paramref name="chars" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="bytes" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="chars" /> is <see langword="null" />.</exception>
+ <paramref name="bytes" /> is <see langword="null" />.
+-or-
+<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="byteCount" /> or <paramref name="charCount" /> is less than zero.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.
-
- -or-
-
- <paramref name="charCount" /> is less than the resulting number of characters.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The actual number of characters written at the location indicated by <paramref name="chars" />.</returns>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.
+-or-
+<paramref name="charCount" /> is less than the resulting number of characters.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF32Encoding.GetChars(System.Byte[],System.Int32,System.Int32,System.Char[],System.Int32)">
<summary>Decodes a sequence of bytes from the specified byte array into the specified character array.</summary>
<param name="byteCount">The number of bytes to decode.</param>
<param name="chars">The character array to contain the resulting set of characters.</param>
<param name="charIndex">The index at which to start writing the resulting set of characters.</param>
+ <returns>The actual number of characters written into <paramref name="chars" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="bytes" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="chars" /> is <see langword="null" />.</exception>
+ <paramref name="bytes" /> is <see langword="null" />.
+-or-
+<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="byteIndex" /> or <paramref name="byteCount" /> or <paramref name="charIndex" /> is less than zero.
-
- -or-
-
- <paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
-
- -or-
-
- <paramref name="charIndex" /> is not a valid index in <paramref name="chars" />.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.
-
- -or-
-
- <paramref name="chars" /> does not have enough capacity from <paramref name="charIndex" /> to the end of the array to accommodate the resulting characters.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The actual number of characters written into <paramref name="chars" />.</returns>
+ <paramref name="byteIndex" /> or <paramref name="byteCount" /> or <paramref name="charIndex" /> is less than zero.
+-or-
+<paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
+-or-
+<paramref name="charIndex" /> is not a valid index in <paramref name="chars" />.</exception>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.
+-or-
+<paramref name="chars" /> does not have enough capacity from <paramref name="charIndex" /> to the end of the array to accommodate the resulting characters.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF32Encoding.GetDecoder">
<summary>Obtains a decoder that converts a UTF-32 encoded sequence of bytes into a sequence of Unicode characters.</summary>
<member name="M:System.Text.UTF32Encoding.GetMaxByteCount(System.Int32)">
<summary>Calculates the maximum number of bytes produced by encoding the specified number of characters.</summary>
<param name="charCount">The number of characters to encode.</param>
- <exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charCount" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
<returns>The maximum number of bytes produced by encoding the specified number of characters.</returns>
+ <exception cref="T:System.ArgumentOutOfRangeException">
+ <paramref name="charCount" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF32Encoding.GetMaxCharCount(System.Int32)">
<summary>Calculates the maximum number of characters produced by decoding the specified number of bytes.</summary>
<param name="byteCount">The number of bytes to decode.</param>
- <exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="byteCount" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
<returns>The maximum number of characters produced by decoding the specified number of bytes.</returns>
+ <exception cref="T:System.ArgumentOutOfRangeException">
+ <paramref name="byteCount" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF32Encoding.GetPreamble">
<summary>Returns a Unicode byte order mark encoded in UTF-32 format, if the <see cref="T:System.Text.UTF32Encoding" /> object is configured to supply one.</summary>
<param name="bytes">The byte array containing the sequence of bytes to decode.</param>
<param name="index">The index of the first byte to decode.</param>
<param name="count">The number of bytes to decode.</param>
+ <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.</exception>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in .NET for a complete explanation).
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>A string that contains the results of decoding the specified sequence of bytes.</returns>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for a complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="P:System.Text.UTF32Encoding.Preamble">
<summary>Gets a Unicode byte order mark encoded in UTF-32 format, if this object is configured to supply one.</summary>
<summary>Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.</summary>
<param name="chars">A pointer to the first character to encode.</param>
<param name="count">The number of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" /> in Visual Basic .NET).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="count" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an int.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <paramref name="count" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an int.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF7Encoding.GetByteCount(System.Char[],System.Int32,System.Int32)">
<summary>Calculates the number of bytes produced by encoding a set of characters from the specified character array.</summary>
<param name="chars">The character array containing the set of characters to encode.</param>
<param name="index">The index of the first character to encode.</param>
<param name="count">The number of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an int.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an int.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF7Encoding.GetByteCount(System.String)">
<summary>Calculates the number of bytes produced by encoding the characters in the specified <see cref="T:System.String" /> object.</summary>
<param name="s">The <see cref="T:System.String" /> object containing the set of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">The resulting number of bytes is greater than the maximum number that can be returned as an int.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in .NET for fuller explanation).
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF7Encoding.GetBytes(System.Char*,System.Int32,System.Byte*,System.Int32)">
<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>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">A pointer to the location at which to start writing the resulting sequence of bytes.</param>
<param name="byteCount">The maximum number of bytes to write.</param>
+ <returns>The actual number of bytes written at the location indicated by <paramref name="bytes" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
+ <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).
+-or-
+<paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="charCount" /> or <paramref name="byteCount" /> is less than zero.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="byteCount" /> is less than the resulting number of bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in .NET for fuller explanation).
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written at the location indicated by <paramref name="bytes" />.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF7Encoding.GetBytes(System.Char[],System.Int32,System.Int32,System.Byte[],System.Int32)">
<summary>Encodes a set of characters from the specified character array into the specified byte array.</summary>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
<param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
+ <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
+ <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).
+-or-
+<paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
-
- -or-
-
- <paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- <paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
+ <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
+-or-
+<paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+<paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in .NET for fuller explanation).
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF7Encoding.GetBytes(System.String,System.Int32,System.Int32,System.Byte[],System.Int32)">
<summary>Encodes a set of characters from the specified <see cref="T:System.String" /> into the specified byte array.</summary>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
<param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
+ <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="s" /> is <see langword="null" /> (<see langword="Nothing" />).
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
+ <paramref name="s" /> is <see langword="null" /> (<see langword="Nothing" />).
+-or-
+<paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
-
- -or-
-
- <paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- <paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
+ <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
+-or-
+<paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+<paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in .NET for fuller explanation).
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF7Encoding.GetCharCount(System.Byte*,System.Int32)">
<summary>Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.</summary>
<param name="bytes">A pointer to the first byte to decode.</param>
<param name="count">The number of bytes to decode.</param>
+ <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="count" /> is less than zero.
-
- -or-
-
- The resulting number of characters is greater than the maximum number that can be returned as an int.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in .NET for fuller explanation).
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
+ <paramref name="count" /> is less than zero.
+-or-
+The resulting number of characters is greater than the maximum number that can be returned as an int.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF7Encoding.GetCharCount(System.Byte[],System.Int32,System.Int32)">
<summary>Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.</summary>
<param name="bytes">The byte array containing the sequence of bytes to decode.</param>
<param name="index">The index of the first byte to decode.</param>
<param name="count">The number of bytes to decode.</param>
+ <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.
-
- -or-
-
- The resulting number of characters is greater than the maximum number that can be returned as an int.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.
+-or-
+The resulting number of characters is greater than the maximum number that can be returned as an int.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF7Encoding.GetChars(System.Byte*,System.Int32,System.Char*,System.Int32)">
<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>
<param name="byteCount">The number of bytes to decode.</param>
<param name="chars">A pointer to the location at which to start writing the resulting set of characters.</param>
<param name="charCount">The maximum number of characters to write.</param>
+ <returns>The actual number of characters written at the location indicated by <paramref name="chars" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).
-
- -or-
-
- <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
+ <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).
+-or-
+<paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="byteCount" /> or <paramref name="charCount" /> is less than zero.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="charCount" /> is less than the resulting number of characters.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The actual number of characters written at the location indicated by <paramref name="chars" />.</returns>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF7Encoding.GetChars(System.Byte[],System.Int32,System.Int32,System.Char[],System.Int32)">
<summary>Decodes a sequence of bytes from the specified byte array into the specified character array.</summary>
<param name="byteCount">The number of bytes to decode.</param>
<param name="chars">The character array to contain the resulting set of characters.</param>
<param name="charIndex">The index at which to start writing the resulting set of characters.</param>
+ <returns>The actual number of characters written into <paramref name="chars" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).
-
- -or-
-
- <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
+ <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).
+-or-
+<paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="byteIndex" /> or <paramref name="byteCount" /> or <paramref name="charIndex" /> is less than zero.
-
- -or-
-
- <paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
-
- -or-
-
- <paramref name="charIndex" /> is not a valid index in <paramref name="chars" />.</exception>
+ <paramref name="byteIndex" /> or <paramref name="byteCount" /> or <paramref name="charIndex" /> is less than zero.
+-or-
+<paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
+-or-
+<paramref name="charIndex" /> is not a valid index in <paramref name="chars" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="chars" /> does not have enough capacity from <paramref name="charIndex" /> to the end of the array to accommodate the resulting characters.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The actual number of characters written into <paramref name="chars" />.</returns>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF7Encoding.GetDecoder">
<summary>Obtains a decoder that converts a UTF-7 encoded sequence of bytes into a sequence of Unicode characters.</summary>
<member name="M:System.Text.UTF7Encoding.GetMaxByteCount(System.Int32)">
<summary>Calculates the maximum number of bytes produced by encoding the specified number of characters.</summary>
<param name="charCount">The number of characters to encode.</param>
- <exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charCount" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an int.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
<returns>The maximum number of bytes produced by encoding the specified number of characters.</returns>
+ <exception cref="T:System.ArgumentOutOfRangeException">
+ <paramref name="charCount" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an int.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF7Encoding.GetMaxCharCount(System.Int32)">
<summary>Calculates the maximum number of characters produced by decoding the specified number of bytes.</summary>
<param name="byteCount">The number of bytes to decode.</param>
- <exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="byteCount" /> is less than zero.
-
- -or-
-
- The resulting number of characters is greater than the maximum number that can be returned as an int.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
<returns>The maximum number of characters produced by decoding the specified number of bytes.</returns>
+ <exception cref="T:System.ArgumentOutOfRangeException">
+ <paramref name="byteCount" /> is less than zero.
+-or-
+The resulting number of characters is greater than the maximum number that can be returned as an int.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF7Encoding.GetString(System.Byte[],System.Int32,System.Int32)">
<summary>Decodes a range of bytes from a byte array into a string.</summary>
<param name="bytes">The byte array containing the sequence of bytes to decode.</param>
<param name="index">The index of the first byte to decode.</param>
<param name="count">The number of bytes to decode.</param>
+ <returns>A <see cref="T:System.String" /> containing the results of decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in .NET for fuller explanation).
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>A <see cref="T:System.String" /> containing the results of decoding the specified sequence of bytes.</returns>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="T:System.Text.UTF8Encoding">
<summary>Represents a UTF-8 encoding of Unicode characters.</summary>
<summary>Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.</summary>
<param name="chars">A pointer to the first character to encode.</param>
<param name="count">The number of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="count" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <paramref name="count" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in .NET for a complete explanation).
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for a complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF8Encoding.GetByteCount(System.Char[],System.Int32,System.Int32)">
<summary>Calculates the number of bytes produced by encoding a set of characters from the specified character array.</summary>
<param name="chars">The character array containing the set of characters to encode.</param>
<param name="index">The index of the first character to encode.</param>
<param name="count">The number of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- The <see cref="P:System.Text.Encoding.EncoderFallback" /> property is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+The <see cref="P:System.Text.Encoding.EncoderFallback" /> property is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF8Encoding.GetByteCount(System.ReadOnlySpan{System.Char})">
<summary>Calculates the number of bytes produced by encoding the specified character span.</summary>
<param name="chars">The span that contains the set of characters to encode.</param>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in .NET for complete explanation).
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
<returns>The number of bytes produced by encoding the specified character span.</returns>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF8Encoding.GetByteCount(System.String)">
<summary>Calculates the number of bytes produced by encoding the characters in the specified <see cref="T:System.String" />.</summary>
<param name="chars">The <see cref="T:System.String" /> containing the set of characters to encode.</param>
+ <returns>The number of bytes produced by encoding the specified characters.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The number of bytes produced by encoding the specified characters.</returns>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF8Encoding.GetBytes(System.Char*,System.Int32,System.Byte*,System.Int32)">
<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>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">A pointer to the location at which to start writing the resulting sequence of bytes.</param>
<param name="byteCount">The maximum number of bytes to write.</param>
+ <returns>The actual number of bytes written at the location indicated by <paramref name="bytes" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="chars" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" />.</exception>
+ <paramref name="chars" /> is <see langword="null" />.
+-or-
+<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="charCount" /> or <paramref name="byteCount" /> is less than zero.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.
-
- -or-
-
- <paramref name="byteCount" /> is less than the resulting number of bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written at the location indicated by <paramref name="bytes" />.</returns>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.
+-or-
+<paramref name="byteCount" /> is less than the resulting number of bytes.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF8Encoding.GetBytes(System.Char[],System.Int32,System.Int32,System.Byte[],System.Int32)">
<summary>Encodes a set of characters from the specified character array into the specified byte array.</summary>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
<param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
+ <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="chars" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" />.</exception>
+ <paramref name="chars" /> is <see langword="null" />.
+-or-
+<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
-
- -or-
-
- <paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- <paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.
-
- -or-
-
- <paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
+ <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
+-or-
+<paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+<paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.
+-or-
+<paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF8Encoding.GetBytes(System.ReadOnlySpan{System.Char},System.Span{System.Byte})">
<summary>Encodes the specified character span into the specified byte span.</summary>
<param name="charCount">The number of characters to encode.</param>
<param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
<param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
+ <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="s" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="bytes" /> is <see langword="null" />.</exception>
+ <paramref name="s" /> is <see langword="null" />.
+-or-
+<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
-
- -or-
-
- <paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
-
- -or-
-
- <paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="s" /> contains an invalid sequence of characters.
-
- -or-
-
- <paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
- <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
+ <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
+-or-
+<paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
+-or-
+<paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="s" /> contains an invalid sequence of characters.
+-or-
+<paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF8Encoding.GetCharCount(System.Byte*,System.Int32)">
<summary>Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.</summary>
<param name="bytes">A pointer to the first byte to decode.</param>
<param name="count">The number of bytes to decode.</param>
+ <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="count" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <paramref name="count" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF8Encoding.GetCharCount(System.Byte[],System.Int32,System.Int32)">
<summary>Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.</summary>
<param name="bytes">The byte array containing the sequence of bytes to decode.</param>
<param name="index">The index of the first byte to decode.</param>
<param name="count">The number of bytes to decode.</param>
+ <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The number of characters produced by decoding the specified sequence of bytes.</returns>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF8Encoding.GetCharCount(System.ReadOnlySpan{System.Byte})">
<summary>Calculates the number of characters produced by decoding the specified byte span.</summary>
<param name="byteCount">The number of bytes to decode.</param>
<param name="chars">A pointer to the location at which to start writing the resulting set of characters.</param>
<param name="charCount">The maximum number of characters to write.</param>
+ <returns>The actual number of characters written at the location indicated by <paramref name="chars" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="bytes" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="chars" /> is <see langword="null" />.</exception>
+ <paramref name="bytes" /> is <see langword="null" />.
+-or-
+<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="byteCount" /> or <paramref name="charCount" /> is less than zero.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.
-
- -or-
-
- <paramref name="charCount" /> is less than the resulting number of characters.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The actual number of characters written at the location indicated by <paramref name="chars" />.</returns>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.
+-or-
+<paramref name="charCount" /> is less than the resulting number of characters.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF8Encoding.GetChars(System.Byte[],System.Int32,System.Int32,System.Char[],System.Int32)">
<summary>Decodes a sequence of bytes from the specified byte array into the specified character array.</summary>
<param name="byteCount">The number of bytes to decode.</param>
<param name="chars">The character array to contain the resulting set of characters.</param>
<param name="charIndex">The index at which to start writing the resulting set of characters.</param>
+ <returns>The actual number of characters written into <paramref name="chars" />.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="bytes" /> is <see langword="null" />.
-
- -or-
-
- <paramref name="chars" /> is <see langword="null" />.</exception>
+ <paramref name="bytes" /> is <see langword="null" />.
+-or-
+<paramref name="chars" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="byteIndex" /> or <paramref name="byteCount" /> or <paramref name="charIndex" /> is less than zero.
-
- -or-
-
- <paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
-
- -or-
-
- <paramref name="charIndex" /> is not a valid index in <paramref name="chars" />.</exception>
- <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.
-
- -or-
-
- <paramref name="chars" /> does not have enough capacity from <paramref name="charIndex" /> to the end of the array to accommodate the resulting characters.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>The actual number of characters written into <paramref name="chars" />.</returns>
+ <paramref name="byteIndex" /> or <paramref name="byteCount" /> or <paramref name="charIndex" /> is less than zero.
+-or-
+<paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
+-or-
+<paramref name="charIndex" /> is not a valid index in <paramref name="chars" />.</exception>
+ <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.
+-or-
+<paramref name="chars" /> does not have enough capacity from <paramref name="charIndex" /> to the end of the array to accommodate the resulting characters.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF8Encoding.GetChars(System.ReadOnlySpan{System.Byte},System.Span{System.Char})">
<summary>Decodes the specified byte span into the specified character span.</summary>
<member name="M:System.Text.UTF8Encoding.GetMaxByteCount(System.Int32)">
<summary>Calculates the maximum number of bytes produced by encoding the specified number of characters.</summary>
<param name="charCount">The number of characters to encode.</param>
- <exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="charCount" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
- <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
<returns>The maximum number of bytes produced by encoding the specified number of characters.</returns>
+ <exception cref="T:System.ArgumentOutOfRangeException">
+ <paramref name="charCount" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF8Encoding.GetMaxCharCount(System.Int32)">
<summary>Calculates the maximum number of characters produced by decoding the specified number of bytes.</summary>
<param name="byteCount">The number of bytes to decode.</param>
- <exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="byteCount" /> is less than zero.
-
- -or-
-
- The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
<returns>The maximum number of characters produced by decoding the specified number of bytes.</returns>
+ <exception cref="T:System.ArgumentOutOfRangeException">
+ <paramref name="byteCount" /> is less than zero.
+-or-
+The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="M:System.Text.UTF8Encoding.GetPreamble">
<summary>Returns a Unicode byte order mark encoded in UTF-8 format, if the <see cref="T:System.Text.UTF8Encoding" /> encoding object is configured to supply one.</summary>
<param name="bytes">The byte array containing the sequence of bytes to decode.</param>
<param name="index">The index of the first byte to decode.</param>
<param name="count">The number of bytes to decode.</param>
+ <returns>A <see cref="T:System.String" /> containing the results of decoding the specified sequence of bytes.</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="bytes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="index" /> or <paramref name="count" /> is less than zero.
-
- -or-
-
- <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.</exception>
+ <paramref name="index" /> or <paramref name="count" /> is less than zero.
+-or-
+<paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.</exception>
<exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.</exception>
- <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (for more information, see Character Encoding in .NET)
-
- -and-
-
- <see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
- <returns>A <see cref="T:System.String" /> containing the results of decoding the specified sequence of bytes.</returns>
+ <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for complete explanation)
+-and-
+<see cref="P:System.Text.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
</member>
<member name="P:System.Text.UTF8Encoding.Preamble">
<summary>Gets a Unicode byte order mark encoded in UTF-8 format, if this object is configured to supply one.</summary>