KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Using Microsoft Roslyn I am trying to determine if a methods return type is void. I have the handle on my MethodDeclarationSyntax and can see the property Called "ReturnType" this is a PredefinedType of void. Do I have to actually check the keyword kind? Is there a better way to do this? ((PredefinedTypeSyntax)methodDec.ReturnType).Keyword.Kind() != SyntaxKind.VoidKeyword Is there a recommended method of accomplishing what I am trying to do?
Tags (comma-separated)
Save Edits
Cancel