Project Lombok http://projectlombok.org/使得在类中实现样板代码变得很简单。 .NET 属性可以实现这一点吗?那里有 .net 端口吗?
现在有一个 .NET 端口!查看龙目岛网 https://github.com/CollinAlpert/Lombok.NET.
免责声明:我是这个库的作者。