Linqpad6 : exception when dumping to DataGrid
A simple query like
will throw an exception
but the following doesn't
Area.Dump(true);
will throw an exception
Could not load file or assembly 'System.Reflection.Emit.Lightweight, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
at LINQPad.UI.ExplorerGrid.GenDynamicField(FieldInfo fld)
at LINQPad.UI.ExplorerGrid.PopulateFromFieldsAndProps(Boolean nonPublic, Type elementType, Boolean enumerableOfEnumerable, String[] editableFields, Nullable`1[] maxFieldLengths)
at LINQPad.UI.ExplorerGrid.PopulateFromFieldsAndProps(Type elementType, Boolean enumerableOfEnumerable, String[] editableFields, Nullable`1[] maxFieldLengths)
at LINQPad.UI.ExplorerGrid.Populate()
at LINQPad.UI.ExplorerGrid.UpdateDataSourceToUse()
at LINQPad.UI.ExplorerGrid.set_CustomDataSource(Object value)
at LINQPad.UI.ExplorerGrid.Display(Object o, GridOptions options)
at LINQPad.UI.RuntimeUIServices.DisplayInGrid(Object obj, GridOptions options)
at LINQPad.Extensibility.DataContext.DataContextDriver.DisplayObjectInGrid(Object objectToDisplay, GridOptions options)
at LINQPad.Extensions.<>c__DisplayClass17_0`1.b__0()
Area.Dump(false);
works ok, but I get the same error if I click on the right arrow and select 'View in grid'(new { a= 1, b =2}).Dump(true);
also works but the following doesn't
void Main()
{
List<Record> records = new List<UserQuery.Record>();
records.Add(new Record());
records.Dump(true);
}
public class Record
{
public int Id ;
public string Code ;
}
Comments
Thanks.