Skip to content

Commit 92b4cf0

Browse files
committed
Made the source generator post public
1 parent 39fa43a commit 92b4cf0

File tree

2 files changed

+23
-21
lines changed
  • src/ProgrammerAl.Site.Content/Posts
    • 20240930_InterfaceSourceGenerator
    • draft_InterfaceSourceGenerator

2 files changed

+23
-21
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Title: New Project: Public Interface Generator
2+
Published: 2024/09/30
3+
Tags:
4+
- Blog
5+
- Project
6+
- Source Generator
7+
- Open Source
8+
---
9+
10+
## New Project: Public Interface Generator
11+
12+
As developers we like to automate things. Anything we can automate is one less thing we waste time on later. Another thing that's getting easier to do, easier than it used to be at least, is to codify our patterns. Enforcing code patterns with code. 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?
13+
14+
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
15+
16+
## Quick Overview: What it does
17+
18+
The purpose of the 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.
19+
20+
## NuGet Package
21+
22+
The NuGet package is hosted on nuget.org. You can get it from: https://www.nuget.org/packages/PublicInterfaceGenerator
23+

src/ProgrammerAl.Site.Content/Posts/draft_InterfaceSourceGenerator/post.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)