DRAG DROP
You write the following code.
You need to get the list of all the types defined in the assembly that is being executed currently.
How should you complete the code? To answer, drag the appropriate code elements to the correct targets in the answer area. Each code element may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place:
List types2 = AppDomain.CurrentDomain.GetAssemblies().
SelectMany(t => t.GetTypes())
.Where(t => t.IsClass && t.Assembly == GetType().Assembly).ToList();
// AppDomain – because it has CurrentDomain
// selectMany – because this ensures a flat list of types. Select will give List<List> which we are not interested in,.
// Assembly because we are comparing Assembly with Assembly type
Hope this helps
*List<List>
Target 3 is “Assembly” I think.
The third answer looks incorrect, instead of Select there should be Assembly