private static TypeAndProperty QueryRelatedTM(IEnumerable<TypeAndProperty> queryTM, TypeAndProperty othertm) { return (from candidate in queryTM where othertm.Type.AssemblyQualifiedName == candidate.Type.AssemblyQualifiedName && othertm.Property.ToString() == candidate.Property.ToString() select candidate).FirstOrDefault(); }
private static TypeAndProperty QueryRelatedTM(IEnumerable <TypeAndProperty> queryTM, TypeAndProperty othertm) { return((from candidate in queryTM where othertm.Type.AssemblyQualifiedName == candidate.Type.AssemblyQualifiedName && othertm.Property.ToString() == candidate.Property.ToString() select candidate).FirstOrDefault()); }