Можно ли объявить/использовать переменную в LINQ?
Например, можно ли написать следующий очиститель LINQ?
var q = from PropertyDescriptor t in TypeDescriptor.GetProperties(instance)
where (t.ComponentType.GetProperty(t.Name) != null)
select t.ComponentType.GetProperty(t.Name);
Существуют ли способы не писать/вызывать t.ComponentType.GetProperty(t.Name)
два раза здесь?