How to convert PropertyInfo to property expression which can be used to invoke StructuralTypeConfiguration
TProperty
exists only in the c# source code text. The compiler always resolves it to a concrete type. If you have a method
void Test(T arg)
{
}
and call it like this
Test("hello");
Test(3);
The compiler generates code for two methods!
void Test(string arg)
{
}
void Test(int arg)
{
}
This means that you have to supply concrete types for your generic parameters if you want to have an invokable method.