You want type to be of TEntity?
public class LINQDynamic<TEntity> where TEntity: class
{
public static TEntity GetQueryResult(object pkKey,TEntity type, params object[] pkKeys)
{
}
or a different known type?
public class LINQDynamic<TEntity> where TEntity: class
{
public static TOther GetQueryResult<TOther>(object pkKey,Tother type, params object[] pkKeys)
{
}