LOADASSEMBLY

General discussions related to using the C# Script Engine in APL+Win.

Moderators: Tech Support, phpbb_admin

LOADASSEMBLY

Postby Ajay Askoolum » November 7th, 2013, 5:53 pm

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?
Ajay Askoolum
 
Posts: 884
Joined: February 22nd, 2007, 2:16 am
Location: United Kingdom

Re: LOADASSEMBLY

Postby Tech Support » November 10th, 2013, 9:35 pm

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.
Tech Support
 
Posts: 1230
Joined: February 10th, 2007, 7:33 am
Location: Rockville, MD


Return to APL+Win & The C# Script Engine

Who is online

Users browsing this forum: No registered users and 14 guests

cron