Can anyone please point me in the direction on how to implement a DllImport statement (say for LoadLibrary) using CodeDom? It's not the end of the world if I have to implement it using a code snippet approach, but thought there might be a better (official?) way.