Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.46 KB

README.md

File metadata and controls

28 lines (23 loc) · 1.46 KB

FluentAssemblyScanner

This repository is not actively being maintained.

Assembly and type scanner for .NET

Build status NuGet version Coverage Status

Examples

public static void Program()
{
  IEnumerable<Type> types = AssemblyScanner.FromAssemblyInDirectory(new AssemblyFilter("bin"))
                                           .IncludeNonPublicTypes()
                                           .BasedOn<IAnimal>()
                                           .InSameNamespaceOf(typeof(IAnimal))
                                           .HasAttribute<VoiceAttribute>()
                                           .OrBasedOn<Human>()
                                           .Filter()
                                           .Classes()
                                           .NonStatic()
                                           .MethodName("Run")
                                           .MethodNameContains("n")
                                           .MethodHasAttribute<VoiceAttribute>()
                                           .Scan();
}