When to use SemanticModel.GetSymbolInfo and when SemanticModel.GetDeclaredSymbol
问题 In some cases, when I'm trying to get the the ISymbol for my syntax node, I'm fail (getting null) when using SemanticModel.GetSymbolInfo but succeed when using SemanticModel.GetDeclaredSymbol. I've attached an example bellow. So my question is when to use each one of the methods for getting the semantic model? public class Class1 { public System.String MyString { get; set; } public static void Main() { var str = @" namespace ClassLibrary31 { public class Class1 { public System.String MyString