PageRenderTime 203ms CodeModel.GetById 101ms app.highlight 1ms RepoModel.GetById 99ms app.codeStats 1ms

/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
 1using System;
 2using System.Collections.Generic;
 3using System.Reflection;
 4
 5namespace LinFu.Reflection
 6{
 7    /// <summary>
 8    ///     Represents a type that can extract <see cref="System.Type" />
 9    ///     objects from an <see cref="Assembly" /> instance.
10    /// </summary>
11    public interface ITypeExtractor : ITypeExtractor<Assembly, Type>
12    {
13    }
14
15    /// <summary>
16    ///     Represents a type that can extract <see cref="System.Type" />
17    ///     objects from an <see cref="Assembly" /> instance.
18    /// </summary>
19    public interface ITypeExtractor<TAssembly, TType>
20    {
21        /// <summary>
22        ///     Returns a set of types from a given assembly.
23        /// </summary>
24        /// <param name="targetAssembly">The <see cref="Assembly" /> that contains the target types.</param>
25        /// <returns>An <see cref="IEnumerable{T}" /> of types from the target assembly.</returns>
26        IEnumerable<TType> GetTypes(TAssembly targetAssembly);
27    }
28}