关于[How to get the SyntaxNode of an ISymbol using Roslyn]的摘要:
In this post, I’ll describe how to determine if a property is an auto-property, using its ISymbol as the source, and not by using reflection into Roslyn which computes this information internally. During the original development of the Uno CodeGen source generators, when building the Immutable generators (soon to be deprecated by the records feature in C# 9.0), we had to determine if a property’s backing field is generated or not.
原文地址: https://jaylee.org/archive/2020/07/19/how-to-get-the-syntaxnode-for-a-symbol-using-roslyn.html