PageRenderTime 14ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/LinFu.Reflection/AssemblyLoader.cs

http://github.com/philiplaureano/LinFu
C# | 21 lines | 11 code | 1 blank | 9 comment | 0 complexity | 06f202924774ab66351f57305dccf13b MD5 | raw file
 1using System.Reflection;
 2
 3namespace LinFu.Reflection
 4{
 5    /// <summary>
 6    ///     Represents a class that loads assemblies into memory
 7    ///     from disk.
 8    /// </summary>
 9    public class AssemblyLoader : IAssemblyLoader
10    {
11        /// <summary>
12        ///     Loads the target assembly into memory.
13        /// </summary>
14        /// <param name="assemblyFile">The full path and filename of the assembly to load.</param>
15        /// <returns>A loaded <see cref="Assembly" /> instance.</returns>
16        public virtual Assembly Load(string assemblyFile)
17        {
18            return Assembly.LoadFrom(assemblyFile);
19        }
20    }
21}