Skip to content

Add ability to exclude certain types from selector #67

@sm-g

Description

@sm-g

I want to write something like

Types.InAssembly(Assembly)
.That()
.AreNot(typeof(Foo), typeof(Bar))

instead of

var exceptions = new[]
            {
                typeof(Foo),
                typeof(Bar),
            };
Types.InAssembly(Assembly)
.That()
.DoNotHaveNameMatching(string.Join('|', exceptions.Select(t => t.Name)))

The last solution is invalid, because it also excludes nested types Bar.Foo and types from other namespace with same names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions