コード例 #1
0
ファイル: Garage.cs プロジェクト: Insinfi/3eme-Prog-Th
 public void AddVehicule(Vehicule vaj)
 {
     if (this.m_NBVehicules < this.m_MaxVehicules)
     {
         this.m_colVehicules[m_NBVehicules] = vaj;
         this.m_NBVehicules++;
     }
     else
     {
         throw new Exception("Trop de véhicules");
     }
 }
コード例 #2
0
        public int CompareTo(object obj)
        {
            Vehicule tmp = (Vehicule)obj;

            return(this.m_cylindree.CompareTo(tmp.m_cylindree));
        }