Which code segment should you use?

You are creating a console application by using C#. You need to access the assembly found in the file named
car.dll. Which code segment should you use?

You are creating a console application by using C#. You need to access the assembly found in the file named
car.dll. Which code segment should you use?

A.
Assembly.Load();

B.
Assembly.GetExecutingAssembly();

C.
this.GetType();

D.
Assembly.LoadFile(“car.dll”);

Explanation:
Assembly.LoadFile – Loads the contents of an assembly file on the specified path. http://
msdn.microsoft.com/en-us/library/b61s44e8.aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *