示例#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);
     }
 }
示例#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);
     }
 }
示例#3
0
 public PowerTransformer(PowerTransformer powerTransformer) : base(powerTransformer)
 {
     TransformerWindings = new List <long>(powerTransformer.TransformerWindings);
 }