Exemple #1
0
 public override void Add(DbgEntity aEntity)
 {
     if (aEntity.CategoryName != this.CategoryName)
     {
         throw new ArgumentException();
     }
     else
     {
         base.Add(aEntity);
     }
 }
 public override bool Equals(object aObject)
 {
     if (aObject != null)
     {
         if (aObject is DbgEntity)
         {
             DbgEntity other = (DbgEntity)aObject;
             //
             return(other.FSEntity == this.FSEntity);
         }
     }
     //
     return(base.Equals(aObject));
 }