public GridRendererContext CreateRendererContext(ITableDataSet tableDataSet, RenderTreeBuilder renderTreeBuilder)
        {
            var itemType        = tableDataSet.GetType().GenericTypeArguments[0];
            var rendererContext = new GridRendererContext(
                GetImutableGridRendererContext(itemType),
                renderTreeBuilder,
                tableDataSet
                );

            return(rendererContext);
        }
Пример #2
0
 public static Type UnderlyingTypeOfItem(this ITableDataSet tableDataSet)
 => tableDataSet.GetType().GenericTypeArguments[0];
Пример #3
0
 public static bool IsExpando(this ITableDataSet tableDataSet)
 => tableDataSet.GetType().GenericTypeArguments[0] == typeof(ExpandoObject);