public GridRendererContext CreateRendererContext(ITableDataSet tableDataSet, RenderTreeBuilder renderTreeBuilder) { var itemType = tableDataSet.GetType().GenericTypeArguments[0]; var rendererContext = new GridRendererContext( GetImutableGridRendererContext(itemType), renderTreeBuilder, tableDataSet ); return(rendererContext); }
public static Type UnderlyingTypeOfItem(this ITableDataSet tableDataSet) => tableDataSet.GetType().GenericTypeArguments[0];
public static bool IsExpando(this ITableDataSet tableDataSet) => tableDataSet.GetType().GenericTypeArguments[0] == typeof(ExpandoObject);