I am creating a property with SyntaxFactory
(roslyn)
Dim [property] = SyntaxFactory .PropertyStatement("MyProperty").AddModifiers(SyntaxFactory .Token(SyntaxKind.FriendKeyword))
The result is
Friend Property MyProperty
To add the property type I probably need to use WithAsClause, but I can't find any usable example.