-
April 19th, 2012, 12:02 PM
#1
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|