Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
关于名为Source Generator的 C# 9 新特性,如何获取属性默认值?
例如:
class MyClass { public int MyValue { get; set; } = 1; }
如何1在编译时获得定义?
1