Which statement about partial classes in C# is true?
Correct answer C. All parts must use the partial keyword and be in the same assembly and namespace
Explanation
A partial class splits one type's definition across several declarations, often in separate files, as with designer-generated code. Every part must carry the partial modifier and belong to the same assembly and namespace, and the compiler merges them into a single type. If parts name base classes, they must agree.
Answer checked How we write and check questions
Discussion