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();
2 Comments on “Which code segment should you use?”
Tamilsays:
Ans. D
0
0
abcssays:
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.
Ans. D
0
0
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.
0
0