/// <summary> /// Deep Clone /// </summary> /// <returns></returns> public IDSCableCollection Copy() { IDSCableCollection cables = new IDSCableCollection(); if (this.Count <= 0) { return(cables); } else { foreach (IDSCable cable in this) { cables.Add(cable.Copy()); } return(cables); } }
/// <summary> /// 构造函数, 初始化成员属性为默认值 /// </summary> public IDSSubEquipment() { ID = ""; ParentID = ""; Tag = ""; FunctionCode = ""; Suffix = ""; NameSuffix = ""; MountingType = ""; MountingLocation = ""; DataPlate = ""; PowerSupply = ""; SwitchTag = ""; ActingCurrent = ""; _cables = new IDSCableCollection(); _mountingScheme = new IDSMountingScheme(); }