Enums are not available

2 posts, 0 answers
  1. Carl
    Carl avatar
    8 posts
    Member since:
    Feb 2011

    Posted 28 Apr 2011 Link to this post

    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.....
  2. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    408 posts

    Posted 04 May 2011 Link to this post

    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 >>

  3. DevCraft banner
Back to Top