Quiz Yourself: Reflection

Test your knowledge of Reflection.

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();
Question 1 of 40 attempted

Get hands-on with 1400+ tech skills courses.