Determines the exact number of characters that will be produced by decoding the specified range of the specified array of bytes as Unicode-encoded characters.
A int whose value equals the number of characters a call to UnicodeEncoding.GetChars(Byte[], int, int, Char[], int) will produce if presented with the specified range of bytes as Unicode-encoded characters.
Type Reason ArgumentNullException bytes is null. ArgumentOutOfRangeException index < 0.
-or-
count < 0.
-or-
index and count do not specify a valid range in bytes (i.e. (index + count) > bytes.Length).
Note: This method overrides Encoding.GetCharCount(Byte[]).
Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0