Example #1
0
        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());
        }
Example #2
0
        public int CompareTo(object obj)
        {
            Tour temp = (Tour)obj;

            return(NameTour.CompareTo(temp.NameTour));
        }