Quiz Yourself: Reflection
Test your knowledge of Reflection.
We'll cover the following...
We'll cover the following...
Reflection Quiz
1.
(Select all that apply.) Which of the following is a correct way to obtain type information?
A.
var typeInfo = typeof(string);
B.
var someObject = new List<int>();
var typeInfo = Type.GetType(someObject);
C.
var typeInfo = Type.GetType("System.Int32");
D.
var someObject = new List<int>();
var typeInfo = someObject.GetType();
1 / 4