예제 #1
0
 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();
 }
예제 #2
0
 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());
 }