public static Headerv1 ParseHeaderv1(string filePath) { System.IO.FileStream fs = System.IO.File.OpenRead(filePath); byte[] data = new byte[fs.Length]; fs.Read(data, 0, System.Convert.ToInt32(fs.Length)); fs.Close(); Headerv1 hdr = new Headerv1(); hdr._data = data; Parser.ParseHeaderv1(ref hdr); return hdr; }