Ejemplo n.º 1
0
 public override IdentifiedObject DeepCopy(IdentifiedObject copy = null)
 {
     if (copy == null)
     {
         copy = new GeographicalRegion(this.GlobalId);
     }
     ((GeographicalRegion)copy).subRegions.AddRange(subRegions);
     return(base.DeepCopy(copy));
 }
Ejemplo n.º 2
0
        public override object Clone()
        {
            GeographicalRegion io = new GeographicalRegion(base.GlobalId);

            io.AliasName = this.AliasName;
            io.Mrid      = this.Mrid;
            io.Name      = this.Name;

            return(io);
        }
Ejemplo n.º 3
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         GeographicalRegion x = (GeographicalRegion)obj;
         return((CompareHelper.CompareLists(x.SubRegions, this.SubRegions)));
     }
     else
     {
         return(false);
     }
 }