This is a migrated thread and some comments may be shown as answers.

Enums are not available

1 Answer 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Carl
Top achievements
Rank 1
Carl asked on 28 Apr 2011, 12:26 PM
If I decompile the following class:

public class Class1
    {
        public enum TypeEnum
        {
            Type1,
            Type2,
            Type3,
            Type4,
        };
  
        public TypeEnum Type { get; set; }
  
        public string ToString(string format, IFormatProvider formatProvider)
        {
            string[] descs =
            {
                "Type 1",
                "Type 2",
                "Type 3",
                "Type 4",
            };
  
            string ret = descs[(int)Type];
            
            return ret;
        }
    }

The enum 'TypeEnum' is not shown, I get the following:
public class Class1
{
    public TypeEnum Type
    {
        get;
        set;
    }
  
    public Class1()
    {
    }
}

If I try to click through on TypeEnum, nothing happens.

This only happens with nested enums, if I define the same enum outside of Class1 then it all reflects, sorry, decompiles properly.

I think that the tool is great though, hopefully your 'Free. Forever' will hold more water than a similar promise from RedGate/Lutz.....

1 Answer, 1 is accepted

Sort by
0
Tsviatko Yovtchev
Telerik team
answered on 04 May 2011, 09:23 AM
Hi Carl,

 Thanks for letting us know about this problem. We'd definitely like to fix it before our official release.

As for the free forever part - you know, it's not me making these decisions. The only thing I can say is that there has been no in-house rumor about any plans to make it a paid product at some later point of time.

Kind regards,
Tsviatko Yovtchev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Carl
Top achievements
Rank 1
Answers by
Tsviatko Yovtchev
Telerik team
Share this question
or