 <p>Use the <code>SyntaxFactory.RegionDirectiveTrivia()</code>. You can always refer to the <a href="http://roslynquoter.azurewebsites.net/" rel="nofollow">Roslyn Quoter</a> site, when you don't know who to generate some part of a piece of code.</p>