Skip to content

Commit

Permalink
Merge branch 'feature/open-generics-support'
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-berg committed Mar 14, 2023
2 parents e7bbd48 + 583a58e commit a025fb0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ATypeScanner/ATypeScanner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Copyright>Copyright (c) 2023 Carl Berg</Copyright>
<Version>0.2.0</Version>
<Version>0.2.0-preview.0</Version>
<Authors>Carl Berg</Authors>
<Description>An appeasing light weight type scanner</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ var matches = new TypeScanner(typeof(IMyInterface).Assembly)
.FindImplementationsOf<IMyInterface>();
```

## Search for implementations of a open class or interface
## Search for closed implementations of a open class or interface
```cs
var matches = new TypeScanner(typeof(IMyInterface<>).Assembly)
.FindClosingImplementationsOf(typeof(IMyInterface<>));
```

## Search for open implementations of a open class or interface
```cs
var matches = new TypeScanner(typeof(IMyInterface<>).Assembly)
.FindOpenImplementationsOf(typeof(IMyInterface<>));
```

0 comments on commit a025fb0

Please sign in to comment.