Skip to content

Fluent assembly and type scanner 🔍 for .Net

License

Notifications You must be signed in to change notification settings

osoykan-archive/FluentAssemblyScanner

Repository files navigation

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();
}