Encodes the specified string as Unicode-encoded characters.
- s
- A string to encode as Unicode-encoded characters.
A byte array containing the encoded representation of s as Unicode-encoded characters.
Type Reason ArgumentNullException s is null.
Note: This method overrides Encoding.GetBytes(Char[]).
Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0