PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

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

One Comment on “Which code segment should you use?


Leave a Reply