コード例 #1
0
 /// <summary>
 /// Remove an existing Renovation from the collection
 /// </summary>
 /// <pdGenerated>Default Remove</pdGenerated>
 public void RemoveRenovation(Renovation oldRenovation)
 {
     if (oldRenovation == null)
     {
         return;
     }
     if (this.renovation != null)
     {
         if (this.renovation.Contains(oldRenovation))
         {
             this.renovation.Remove(oldRenovation);
         }
     }
 }
コード例 #2
0
 /// <summary>
 /// Add a new Renovation in the collection
 /// </summary>
 /// <pdGenerated>Default Add</pdGenerated>
 public void AddRenovation(Renovation newRenovation)
 {
     if (newRenovation == null)
     {
         return;
     }
     if (this.renovation == null)
     {
         this.renovation = new System.Collections.Generic.List <Renovation>();
     }
     if (!this.renovation.Contains(newRenovation))
     {
         this.renovation.Add(newRenovation);
     }
 }