Given a block of code,
if (messageType == typeof(FibreConnectorClass))
{
FibreConnectorClass fibreconnect = (FibreConnectorClass)payload;
fiberConnectorComboBox.Items.Clear();
foreach (string var in fibreconnect.FibreConnList)
{
fiberConnectorComboBox.Items.Add(var);
}
//fiberConnectorComboBox.DataSource = fibreconnect.FibreConnList;
}
and the class file:
internal sealed class FibreConnectorClass
{
internal FibreConnectorClass()
{
}
public string[] FibreConnList;
}
I'm trying to determine where the items come from, in the line:
foreach (string var in fibreconnect.FibreConnList)
I'm puzzled because the FibreConnectorClass tells me nothing.
Thank you for your attention.
Aucun commentaire:
Enregistrer un commentaire