How to get method definition using Roslyn?
How to get method declaration alone from MemberDeclarationSyntax object? How to replace single line and multiline comments from a method definition with empty. Can we do this with SyntaxTriviaList. Here i didn't assigned any object to SyntaxTriviaList. Do we have any method for getting trivia info from definition of body. How to get Method Name alone. private string GetMethodsInSourceFile(string fileName) { SyntaxTree tree = SyntaxTree.ParseFile(fileName); var root = (CompilationUnitSyntax)tree.GetRoot(); IEnumerable<Roslyn.Compilers.CSharp.SyntaxNode> syntaxNodes; syntaxNodes = from