locked
Enum.GetName don't work on compact Framwork RRS feed

  • Question

  • For exemple, I try to get the names of the enum Parity (System.IO.Ports) and add in a combobox called

    comboboxparity in C#

    foreach (string str in Enum.GetNames(typeof(Parity)))

    {

    comboboxparity.Itens.Add(str);

    }

    Very simple, but doen't work on Compact Framework

    Suggestions??

    • Changed type Michel VerhagenMVP Saturday, October 21, 2017 9:14 PM It was a question, not a discussion
    Thursday, October 12, 2017 6:40 PM

Answers