DirectoryQuery.FindProperties method

Dec 11, 2007 at 3:12 PM

I dissect the code of LinqToAD and try to understand how it works (I read the explanations on your blog too).
But some piece of codes stay obscure for me: I wonder when DirectoryQuery.FindProperties method is called.
Whatever can the projection expression be, never the body of lambda expression is a MemberInitExpression type (and never FindProperties is called).
Could you lighten this point ?
Dec 12, 2007 at 12:41 PM
I reply to myself : I think NewExpression type is needed instead of MemberInitExpression. Then the arguments list is iterated and FindProperties() method is called on each argument.
Dec 18, 2007 at 1:11 AM
Hi Zim

Thanks for your feedback. Some things were reshuffled around the Orcas Beta 2 timeframe while the origins of the code go back post Orcas Beta 2, hence some archaeology might be left in the code. I'll take a look at this in the next iteration of the project.