2

关于名为Source Generator的 C# 9 新特性,如何获取属性默认值?

例如:

class MyClass
{
    public int MyValue { get; set; } = 1;
}

如何1在编译时获得定义?

4

0 回答 0