I know that one shouldn't include using namespace declarations in header files as they make items available to the whole project and that might have a bad result. But so far I have been unable to find info on whether a "#using" directive is allowed in header files. Can I use it in a header file like in this example?:
Here's my header file with function forward declaration:
#using <System.dll>
System::Security::Cryptography::X509Certificates::X509Certificate2^ GetCertificate(int Index);
If I can't, what is a workaroud for inclusion of System.dll, on which X509Certificate2 is dependant?