You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this exception when trying to sort a IEnumerable that contains a dynamic type.
This code reproduces the problem (.NET Core App 2.0)
class Program
{
static void Main(string[] args)
{
var p = GetEnumerable();
p.AsQueryable().OrderBy("Value");
}
private static IEnumerable<object> GetEnumerable()
{
var random = new Random((int) DateTime.Now.Ticks);
var p = System.Linq.Enumerable.Range(0, 10).Select(i =>
{
return new
{
Id = i,
Value = random.Next(),
};
});
return p;
}
}
The text was updated successfully, but these errors were encountered:
I'm getting this exception when trying to sort a IEnumerable that contains a dynamic type.
This code reproduces the problem (.NET Core App 2.0)
The text was updated successfully, but these errors were encountered: