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();
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();
Ans. D
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.