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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -