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