public byte[] ToByte() { List <byte> retour = new List <byte>(); retour.AddRange(BitConverter.GetBytes(IdEtape)); //4 retour.AddRange(BitConverter.GetBytes(Heure.Ticks)); //8 retour.AddRange(BitConverter.GetBytes(départ.Ticks)); //8 retour.AddRange(BitConverter.GetBytes(IdTour)); //4 retour.Add((Byte)Info_Etape); //1 retour.AddRange(NameTour.GetBytes(_lgtournée)); return(retour.ToArray()); }