示例#1
0
        Type[] exec <T>()
        {
            AssemblyList list = new AssemblyList();

            list.AddAssemblies(GetType().Assembly);

            ImplementationsFinder finder          = new ImplementationsFinder(new TypeImplementsInterfaceValidator());
            IEnumerable <Type>    implementations = finder.FindImplementations(list, typeof(T));

            return(implementations.ToArray());
        }