title: How do I get the architecture of a dll in C#?
body: <p>I have a C# program that needs to copy over a user provided dll for another program to load and use. In the case of the program running on a 64 bit machine, the user should not be allowed to pass a 32 bit dll and should inform the user that they've provided an incorrect dll. So how can I find the architecture of a dll?</p>
  
  <p>I saw a couple similar questions and they mentioned DUMPBIN and Corflags.exe, but there is no example code, so where do I find these programs and how do I use these?</p>