CSharp___DllImport.Phone.IO.File7.ReadAllBytes C# (CSharp) Метод

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

public static ReadAllBytes ( string fullpath ) : byte[]
fullpath string
Результат byte[]
                public static byte[] ReadAllBytes(string fullpath)
                {
                    var f = Phone.IO.File7.Open(fullpath, "rb");

                    int c = f.Getc();

                    var va = new System.Collections.Generic.List<byte>();

                    while (c != Phone.IO.File7.EOF)
                    {
                        va.Add((byte)c);
                        c = f.Getc();
                    }

                    //var data = va.Select(a => (char)a).ToArray();
                    //string r = new string(data);

                    f.Close();

                    return va.ToArray();
                }