Exemple #1
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         PowerTransformer x = (PowerTransformer)obj;
         return(CompareHelper.CompareLists(x.TransformerWindings, this.TransformerWindings));
     }
     else
     {
         return(false);
     }
 }
Exemple #2
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         PowerTransformer x = (PowerTransformer)obj;
         return(x.function == this.function && x.autotransformer == this.autotransformer &&
                CompareHelper.CompareLists(x.TransformerWindings, this.TransformerWindings, true));
     }
     else
     {
         return(false);
     }
 }
Exemple #3
0
 public PowerTransformer(PowerTransformer powerTransformer) : base(powerTransformer)
 {
     TransformerWindings = new List <long>(powerTransformer.TransformerWindings);
 }