public class MsgIdGatewayTimeMap { string msgId; double gatewayTime; public string MsgId { get { if (!String.IsNullOrEmpty(msgId)) return msgId.ToUpper(); else return string.Empty; } set { msgId = value; } } public double GatewayTime { get { //Double.IsNullOrEmpty(timeStamp) return gatewayTime; //else // return string.Empty; } set { gatewayTime = value; } } public MsgIdGatewayTimeMap(string msgId, double gatewayTime) { this.msgId = msgId; this.gatewayTime = gatewayTime; } }
for (int Index = 0; Index < cmnMsgIdsRYbuses.Count; Index++) { GatewayTimeRYlist.Add(new MsgIdGatewayTimeMap(cmnMsgIdsRYbuses, GatewayTimeRYbuses)); }
for (int Index = 0; Index < cmnMsgIdsRYbuses.Count; Index++) { var item = cmnMsgIdsRYbuses[Index]; GatewayTimeRYlist.Add(new MsgIdGatewayTimeMap(item.cmnMsgIdsRYbuses, item.GatewayTimeRYbuses)); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)