コード例 #1
0
 private static TypeAndField QueryRelatedTM(IEnumerable<TypeAndField> queryTM, TypeAndField othertm)
 {
     return (from candidate in queryTM
             where
                 othertm.Type.AssemblyQualifiedName == candidate.Type.AssemblyQualifiedName
                 &&
                 othertm.Field.ToString() == candidate.Field.ToString()
             select candidate).FirstOrDefault();
 }
コード例 #2
0
 private static TypeAndField QueryRelatedTM(IEnumerable <TypeAndField> queryTM, TypeAndField othertm)
 {
     return((from candidate in queryTM
             where
             othertm.Type.AssemblyQualifiedName == candidate.Type.AssemblyQualifiedName
             &&
             othertm.Field.ToString() == candidate.Field.ToString()
             select candidate).FirstOrDefault());
 }