Which code segment should you use?

You are creating a console application by using C#.
You need to access the application assembly.
Which code segment should you use?

You are creating a console application by using C#.
You need to access the application assembly.
Which code segment should you use?

A.
Assembly.GetAssembly(this);

B.
this.GetType();

C.
Assembly.Load();

D.
Assembly.GetExecutingAssembly();



Leave a Reply 2

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


abcs

abcs

The correct answer is D, while A could be the answer IF the parameter passed in would be this.GetType() since the constructor accepts only a type not an instance.