You are developing an application that generates code. The application includes the
following code segment. (Line numbers are included for reference only.)
You need to ensure that code generated by the GenerateCode() method represents a class
that can be accessed by all objects in its application domain.
Which two code segments can you insert at line 05 to achieve this goal? (Each correct
answer presents a complete solution. Choose two.)
A.
Option A
B.
Option B
C.
Option C
D.
Option D
C
AC is the right answer.
C contains A ?
ct.IsClass is true by default and code “ct.IsClass = true” has no effect.
Artem, where did you see that ct.IsClass is true by default? I can’t find it on MSDN or docs.microsoft… :/