L
Leif Eirik Olsen
Hi,
Can anyone please tell me if there is a difference between the two options
described below:
public enum PingerID {All, A=240, B, C, D, E, F, G, H, J, K, L, M, N, P, R,
T, Unknown};
for (PingerID Pid = PingerID.All; Pid <= PingerID.T; Pid++)
if (PingerID.IsDefined(typeof(PingerID), (int)Pid))
{
//Option1
cboSelectPinger.Items.Add(Pid.ToString());
//Option 2
cboSelectPinger.Items.Add(Pid);
}
Thanks,
Leo
Can anyone please tell me if there is a difference between the two options
described below:
public enum PingerID {All, A=240, B, C, D, E, F, G, H, J, K, L, M, N, P, R,
T, Unknown};
for (PingerID Pid = PingerID.All; Pid <= PingerID.T; Pid++)
if (PingerID.IsDefined(typeof(PingerID), (int)Pid))
{
//Option1
cboSelectPinger.Items.Add(Pid.ToString());
//Option 2
cboSelectPinger.Items.Add(Pid);
}
Thanks,
Leo