Page 1 of 1

LOADASSEMBLY

PostPosted: November 7th, 2013, 5:53 pm
by Ajay Askoolum
Using C#, sometimes I need to Add Reference and then specify Using; for example I need to add a reference to System.Configuration and then specify Using System.Configuration;

Does LoadAssembly do both these steps?

Re: LOADASSEMBLY

PostPosted: November 10th, 2013, 9:35 pm
by Tech Support
The answer is in the last sentence in the description of the LoadAssembly method on page 92 of the CSE manual and it reads as follows:

Just as with the CSE ‘Init’ method, the ‘LoadAssembly’ method does not add a ‘using’ statement for a namespace associated with the loaded assembly.

Therefore a separate 'using' statement is required.