Encodes the specified string.
- s
- The string to encode.
A byte array containing the encoded representation of s.
Type Reason ArgumentNullException s is null.
Operation
As described above.Note to Inheritors
This method is overridden by types derived from System.Text.Encoding to perform the encoding.
Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0