Mono Class Library: System.Text.UnicodeEncoding Overview | Members

System.Text.UnicodeEncoding.GetByteCount Method

Returns the number of bytes required to encode the specified string as Unicode-encoded characters. [Edit]

public override int GetByteCount (string s)

Parameters

s
A string to encode as Unicode-encoded characters. [Edit]

Returns

A int containing the number of bytes needed to encode s as Unicode-encoded characters. [Edit]

Exceptions

TypeReason
ArgumentNullExceptions is null. [Edit]

Remarks

Note: This method overrides Encoding.GetByteCount(Char[]).
[Edit]

Requirements

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0