Test: First Web Program (Web Project) in C# Explained
3. What mechanism is used for the developer (you) and Visual Studio designer to work simultaneously on the same C# (version 2.0 and later) class without stepping on each others toes?
Congratulations! Correct Answer.
You Answered: None. If you took the test, your answer will show up here.
Correct Answer: Two different files are used for the same class: each declared as partial class
ExplanationThe developer will write the code in a file called, for example, Default.aspx.cs. And the Visual Studio designer will generate its code in another file called, for example, Default.aspx.designer.cs. Both the files contain the same class (e.g. _Default); but they are both declared with the keyword ‘partial’. These two files are kept separate – writing the code for the same class.
Take the TestTake the complete test on this topic. You will be able to review answers to questions and get a test score.
Take the Test
Question 3 of 5
Test is Based on this Article
More Articles With Similar Tags