Answer the question
In order to leave comments, you need to log in
How to get parameter type in Roslyn parser?
Hello everyone
Could you help me, I need to write a Roslyn Analyzer so that when passing a parameter to a function I can check its type and make corrections?
He swears at this, says that "parameters are not supported in RegisterSymbolAction"
public override void Initialize(AnalysisContext context)
{
context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.Parameter);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question