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()); }
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(); }