This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class GreedyFactoryMethodQuery : IMethodQuery | |
{ | |
public IEnumerable<IMethod> SelectMethods(Type type) | |
{ | |
if (type == null) | |
throw new ArgumentNullException("type"); | |
return from mi in type.GetMethods( | |
BindingFlags.Static | BindingFlags.Public) | |
where mi.ReturnType == type |