Skip to content

Commit 39fa43a

Browse files
committed
Added a new draft blog post for the public interface generator project. Will post it when the project hits 1.0
1 parent e54cea2 commit 39fa43a

File tree

1 file changed

+21
-0
lines changed
  • src/ProgrammerAl.Site.Content/Posts/draft_InterfaceSourceGenerator

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Title: New Project: Public Interface Generator
2+
Published: 2024/05/06
3+
Tags:
4+
- Blog
5+
- Project
6+
---
7+
8+
## New Project: Public Interface Generator
9+
10+
As developers we like to automat things. Anything we can automate is one less thing we waste time on. Another thing that's getting easier to do, easier than it used to be at least, is to codify our patterns. One common pattern in C# is to cerate an interface that exists just to make unit test mocking easier. So why not generate the interface code instead of writing it?
11+
12+
Well that's the project. There's code and a NuGet package and everything. The full details are in the project README at: https://github.com/ProgrammerAL/public-interface-generator
13+
14+
## Quick Overview: What it does
15+
16+
The purpose of this project is to make a C# Source Generator to create Interfaces at compile time. The Source Generator will inspect all classes with the provided [GenerateInterfaceAttribute] attribute and generate an Interface of all public Methods, Properties, and Events.
17+
18+
## NuGet Package
19+
20+
The NuGet package is hosted on nuget.org. You can get it from: https://www.nuget.org/packages/PublicInterfaceGenerator
21+

0 commit comments

Comments
 (0)