src/Giles.Core/Utility/TypeLoader.cs
/// <summary>
/// Gets a list of new instances of classes which implement, extend or are of type T
/// from all of the assemblies in the executing path
/// </summary>
/// <returns>List of new instances of classes which implement, extend or are of type T</returns>
Gets a list of new instances of classes which implement, extend or are of type T
from all of the assemblies in the executing path
Gets a list of new instances of classes which implement extend or are of type T from all of the assemblies in the executing path
public static IEnumerable<T> GetNewInstancesByType<T>() where T : class
        {
            var files = AssemblyExtensions.GetAssembliesFromExecutingPath();
            var result = new List<T>();
            files.Each( file => result.AddRange( AssemblyExtensions.FromAssemblyGetInstancesOfType<T>( file ) ) );
            return result;
        }
public static IEnumerable < T > GetNewInstancesByType < T > ( ) where T : class { var files = AssemblyExtensions . GetAssembliesFromExecutingPath ( ) ; var result = new List < T > ( ) ; files . Each ( file => result . AddRange ( AssemblyExtensions . FromAssemblyGetInstancesOfType < T > ( file ) ) ) ; return result ; }
Gets a list of new instances of classes which implement, extend or are of type T
from all of the assemblies in the executing path
Gets a list of new instances of classes which implement extend or are of type T from all of the assemblies in the executing path
List of new instances of classes which implement, extend or are of type T
List of new instances of classes which implement extend or are of type T