public IDSLoop(IDSSubSystem subSystem) { ID = ""; ParentID = ""; _subSystem = subSystem; LoopType = ""; SerialNumber = ""; Suffix = ""; ShortLocation = ""; Medium = ""; Parameter = ""; NormalTemperature = ""; UplimitTemperature = ""; NormalPressure = ""; UplimitPressure = ""; PressureUnit = ""; PipeMaterial = ""; DN = ""; ContainerMaterial = ""; HasInnerLining = false; AmbientTemperature = ""; AmbientExLevel = ""; MediumExLevel = ""; MeasurementRange = ""; ProcessRange = ""; Unit = ""; Function = ""; Description = ""; Source = ""; SubLoops = new IDSSubLoopCollection(); }
/// <summary> /// Deep Clone /// </summary> /// <returns></returns> public IDSSubLoopCollection Copy() { IDSSubLoopCollection subLoops = new IDSSubLoopCollection(); if (this.Count <= 0) { return(subLoops); } else { foreach (IDSSubLoop subLoop in this) { subLoops.Add(subLoop.Copy()); } return(subLoops); } }