Create a enum from a string list dynamically

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ISA1
    New Member
    • Jun 2016
    • 1

    Create a enum from a string list dynamically

    Hi,

    I have no background of C# and .NET and I am stuck at a point, where I want to display a property list from a dynamic string list.
    When I define a enum with three fields for example,I can see enum values in my property list.

    Code:
    public enum MyEnum
            {
                Text1,
                Text2,
                Text3
            };
    However, I want to display a dynamic string list instead of the enum values. Is there a way that I can convert my string list to enum and use it?
    Last edited by zmbd; Jun 16 '16, 12:18 AM. Reason: [z{cleaning up merged threads}{Please use the [CODE\] formatting for Script and formatted tables}]
Working...