Select Func in Lambda Expression?

I suspect you want: Func Select = r => new SelectAllRegion { RegionID = r. RegionID, RegionDescription = r. RegionDescription } That's assuming you've got a suitable SelectAllRegion class.

The lambda expression you posted converts a a Regions into an anonymous type - which is always the result of new { ... } That can only (usefully) be used in the context of type inference, rather than a simple variable declaration as you've got here.

I suspect you want: Func Select = r => new SelectAllRegion { RegionID = r. RegionID, RegionDescription = r. RegionDescription }; That's assuming you've got a suitable SelectAllRegion class.

The lambda expression you posted converts a a Regions into an anonymous type - which is always the result of new { ... }. That can only (usefully) be used in the context of type inference, rather than a simple variable declaration as you've got here.

Your first line returns an anonymous type. You want to return a SelectAllRegion - something like this: Func Select = r => new SelectAllRegion() {RegionID = r. RegionID, RegionDescription = r.

RegionDescription}.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions