Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding CodeRegionDirective around CodeNamespaceImport using CodeDom

Status
Not open for further replies.

RyanEK

Programmer
Apr 30, 2001
323
0
0
AU
Hi,

I can't seem to add region directives around CodeNamespaceImport. Is is possible to generate this code using CodeDom?

Code:
namespace MyNamespace
{
#if POCKETPC
    using System.Data.SqlServerCe;
#else
    using System.Data.SqlClient;
#endif
}

Thanks
Ryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top