/src/LinFu.Reflection/Interfaces/ITypeExtractor.cs
http://github.com/philiplaureano/LinFu · C# · 28 lines · 13 code · 2 blank · 13 comment · 0 complexity · a2daa9e6416795fbc084d15314315946 MD5 · raw file
- using System;
- using System.Collections.Generic;
- using System.Reflection;
- namespace LinFu.Reflection
- {
- /// <summary>
- /// Represents a type that can extract <see cref="System.Type" />
- /// objects from an <see cref="Assembly" /> instance.
- /// </summary>
- public interface ITypeExtractor : ITypeExtractor<Assembly, Type>
- {
- }
- /// <summary>
- /// Represents a type that can extract <see cref="System.Type" />
- /// objects from an <see cref="Assembly" /> instance.
- /// </summary>
- public interface ITypeExtractor<TAssembly, TType>
- {
- /// <summary>
- /// Returns a set of types from a given assembly.
- /// </summary>
- /// <param name="targetAssembly">The <see cref="Assembly" /> that contains the target types.</param>
- /// <returns>An <see cref="IEnumerable{T}" /> of types from the target assembly.</returns>
- IEnumerable<TType> GetTypes(TAssembly targetAssembly);
- }
- }