c++\cli using System::Linq::Expressions::Expression
Can some one show me an example of how to create the following expression, using System::Linq::Expressions::Expression in C++\CLI.
C# version
int UWI;
Borehole^ b;
boreholes = new Collection<Borehole^>(kingdom->Get<Borehole^>(b => b.UWI == UWI).ToList());
C++\CLI version
I want to convert the following C# expression (b => b.UWI == UWI) to
System::Linq::Expressions::Expression<System::Func<Borehole^, bool>^>^ _expression;
How should can I build expression object _expression into (b => b.UWI == UWI) and allocate object _expression?
You can use any obect for sample demo.