issues when decompile a class

2 posts, 0 answers
  1. Agnaldo
    Agnaldo avatar
    1 posts
    Member since:
    Apr 2010

    Posted 02 May 2011 Link to this post

    Look the code:
    class Dados
       {
           public List<String> strings { private get; set; }
           public Dados()
           {
               strings = "aaa bbb ccc ddd eee fff"
                   .Split(new char[] { ' ' }, 
                       StringSplitOptions.RemoveEmptyEntries)
                   .ToList<String>();
           }
           public IEnumerable<String> GetStrings()
           {
               foreach (var item in strings)
               {
                   yield return item;
               }
           }
       }

    The code, after JD:

    internal class Dados
    {
        public List<string> strings
        {
            private get;
            set;
        }
      
        public Dados()
        {
            char[] chrArray = new char[1].strings = chrArray[0] = 32.Split(chrArray, StringSplitOptions.RemoveEmptyEntries).ToList();
        }
      
        public IEnumerable<string> GetStrings()
        {
            Enumerat<string> enumerator = base.strings.GetEnumerator();
            while (&enumerator.MoveNext())
            {
                string current = &enumerator.Current;
                yield return current;
                bool flag = true;
            }
        }
    }

    Enumerat<T> and base. are two of the issues.
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 05 May 2011 Link to this post

    Hello Agnaldo,

    We have logged the issue. A fix will be provided in the next iteration of the product.

    All the best,
    Kaloyan
    the Telerik team

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

  3. DevCraft banner
Back to Top