iTextSharp.text.DocWriter.GetISOBytes C# (CSharp) Метод

GetISOBytes() публичный статический Метод

Converts a string into a Byte array according to the ISO-8859-1 codepage.
public static GetISOBytes ( string text ) : byte[]
text string the text to be converted
Результат byte[]
        public static byte[] GetISOBytes(string text)
        {
            if (text == null)
                return null;
            int len = text.Length;
            byte[] b = new byte[len];
            for (int k = 0; k < len; ++k)
                b[k] = (byte)text[k];
            return b;
        }