Returns the number of bytes required to encode the specified string as Unicode-encoded characters.
- s
- A string to encode as Unicode-encoded characters.
A int containing the number of bytes needed to encode s as Unicode-encoded characters.
Type Reason ArgumentNullException s is null.
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