walterlv / BlogComments

3 stars 0 forks source link

post/generate-code-of-generic-types #70

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

生成代码,从 T 到 T1, T2, Tn —— 自动生成多个类型的泛型 - walterlv

生成代码,从 T 到 T1, T2, Tn —— 自动生成多个类型的泛型

https://blog.walterlv.com/post/generate-code-of-generic-types.html

Cyl18 commented 3 years ago

Fody也可以做到 而且更方便

walterlv commented 3 years ago

@Cyl18 感谢推荐!

Cyl18 commented 3 years ago

@walterlv 😀我还看到一个https://github.com/AArnott/CodeGeneration.Roslyn 保存文件就能像设计器一样自动生成代码 也挺好

Cyl18 commented 3 years ago

@walterlv C# 9官方还加了个code generator https://devblogs.microsoft.com/dotnet/introducing-c-source-generators/