c# - Get Func types from a List of Expression<Func> -
i have following list on class:
public class mapper { public list<expression> expressions { get; set; } = new list<expression>(); }
i know expressions be:
expression<func<intype, outtype>>
the problem intype , outtype vary in list ...
i tried define not compile.
expression<func<,>>
later on need go through each expression , input , output types of function.
is possible?
no, not possible.
a type expression<func<_,_>>
called higher kinded type. c# language has no way express such types.
Comments
Post a Comment