Multiple choice technology web technology

Which of the following method is used to obtain details about information types of assembly?

  1. GetTypes

  2. GetType

  3. Both A) and B)

  4. None of the Above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Both GetTypes() and GetType() can be used to obtain type information from an assembly. GetTypes() returns all types defined in the assembly, while GetType() retrieves a specific type by name. Both methods are part of the System.Reflection namespace and serve different purposes for type discovery.