Mono Class Library: System.Text.UnicodeEncoding Overview | MembersSystem.Text.UnicodeEncoding.GetCharCount Method |
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. [Edit]
|
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. [Edit]
Type Reason ArgumentNullException bytes is null. [Edit] ArgumentOutOfRangeException index < 0.
-or-
count < 0.
-or-
index and count do not specify a valid range in bytes (i.e. (index + count) > bytes.Length).
[Edit]
Note: This method overrides Encoding.GetCharCount(Byte[]).[Edit]
Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0