public dynamic Clone() { CConnectionInfo cls_ConnectInfo_Clonado = new CConnectionInfo(); cls_ConnectInfo_Clonado.ConnectionType = this.ConnectionType; cls_ConnectInfo_Clonado.Status = this.Status; cls_ConnectInfo_Clonado.NamePC = this.NamePC; return(cls_ConnectInfo_Clonado); }
public CStationConnectionData(int ConnectionsCountIn) { ConnectionsCount = ConnectionsCountIn; IPEndPointValue = new IPEndPoint(0, 0); Connection = new CConnectionInfo[ConnectionsCount - 1 + 1]; for (int index = 0; index <= ConnectionsCount - 1; index++) { Connection[index] = new CConnectionInfo(); } }