Determines the exact number of bytes required to encode the specified range of the specified array of characters as ASCII-encoded characters.
A int containing the number of bytes required to encode the range in chars from index to index + count -1 as ASCII-encoded characters.
Type Reason ArgumentNullException chars is null. ArgumentOutOfRangeException index < 0.
-or-
count < 0.
-or-
index and count do not specify a valid range in chars (i.e. ( index + count - 1) > chars.Length).
Note: This method overrides Encoding.GetByteCount(Char[]).
Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0