示例#1
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         SynchronousMachine x = (SynchronousMachine)obj;
         return(x.CurrentRegime == this.CurrentRegime && x.Capacity == this.Capacity);
     }
     else
     {
         return(false);
     }
 }
示例#2
0
 public SynchronousMachine(SynchronousMachine sm) : base(sm)
 {
     Capacity      = sm.Capacity;
     CurrentRegime = sm.CurrentRegime;
 }