I'm new in using lambda expression sorry for a dumb question. Anyway consider this statement:
MethodInfo methodInfo = methodInfos.Where(k => k.GetCustomAttributes(typeof(DLMethodAttribute), false).Length > 0).Single();
My question is how can to identity if the predicate part has a result, considering methodinfos does not have any member having an attribute. I've got an error message telling, "Sequence contains no elements"