score:3

Accepted answer

how about:

var query = from property in _target.gettype().getproperties()
            let attributes = attribute.getcustomattributes(property, true)
            where attributes.any()
            let val = _propertyvalueaccessor.getvalue(_target, property)  
            from attribute in attributes
            select new propertycontext
            {
                propertyvalue = val,
                annotation = attribute,
                sourcetype = _target,
            };

Related Query

More Query from same tag