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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -