예제 #1
0
 public override void Add(DbgEntity aEntity)
 {
     if (aEntity.CategoryName != this.CategoryName)
     {
         throw new ArgumentException();
     }
     else
     {
         base.Add(aEntity);
     }
 }
예제 #2
0
 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));
 }