S
shapper
Hello,
I have the following List of an anonymous type:
IList<Object> data = new List<Object>();
data.Add(new { Type = "A", Value = 10 });
data.OrderBy(r => r.Type);
However, I am not able to order it because type is not recognized on
r.Type.
What am I doing wrong?
Thank You,
Miguel
I have the following List of an anonymous type:
IList<Object> data = new List<Object>();
data.Add(new { Type = "A", Value = 10 });
data.OrderBy(r => r.Type);
However, I am not able to order it because type is not recognized on
r.Type.
What am I doing wrong?
Thank You,
Miguel