title: Generate Extension Methods using System.CodeDom
body: <p>Has anyone ever tried to generate extension methods using System.CodeDom under .NET 4.0? There doesn't seem to be any way to specify a CodeMemberMethod or CodeParameterDeclarationExpression as being an extension method/parameter.</p>
  
  <p>If this isn't possible, are there any good workarounds?</p>
  
  <p>Thanks</p>