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

issues when decompile a class

1 Answer 27 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Agnaldo
Top achievements
Rank 1
Agnaldo asked on 02 May 2011, 06:54 PM
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.

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 05 May 2011, 08:32 AM
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 >>

Tags
General Discussions
Asked by
Agnaldo
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or