April 19th, 2012, 01:02 PM
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.
boreholes = new Collection<Borehole^>(kingdom->Get<Borehole^>(b => b.UWI == UWI).ToList());
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.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.