2021年1月27日星期三

custum syntax like Where Clause x=>x.?

I would like to know if there is a way to call the property of current object. Just to have a clean code. In where clause if you write x => x. here you will get property of current object. So i would like to do like next :(Employee = Generic)

Instead of

Employee emp = new Employee;  MyModelsVirtualRepository.Employee.Select(emp.name);  

I would like to write

MyModelsVirtualRepository.Employee.Select(?.name);   ?=here is the question  

thanks in advance.

https://stackoverflow.com/questions/65929631/custum-syntax-like-where-clause-x-x January 28, 2021 at 09:07AM

没有评论:

发表评论