I have a domain model: ie. User -> Accounts -> Portfolios . Each User has a List<Account> and each Account has a List<Portfolio>. I have a user context so to access a specific portfolio, right now I do... UserContext.User.Accounts.Where().Single().Portfolios.Where().Single().Name .... I want to encapsulate all the Extension Methods with the Lambda expression .... I am thinking User.ActiveAccount.ActivePortfolio. etc but im not sure how since theres params that need to be passed.
Using vs 2k8 .net 3.5
Thanks
Encapsulating Lambda Expression / Extension Methods
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Joel Cochran12 reputationPosted Jan 4, 2008, 8:07 AM EST
Could you be more specific? What is it that you actually wish to achieve? Whether or not the methods are Extension Methods is really irrelevant: what do you want the Lambda to accomplish? And what kind of Generic Delegate is the Lambda supposed to represent?
I don't know if it will help or not, but here is an article I wrote about Lambda Expressions.