Intermediate
C#
Q85 / 100
What is the File-Scoped Namespace in C# 10?
Correct! Well done.
Incorrect.
The correct answer is B) A declaration syntax (namespace Foo;) removing one level of indentation for the entire file
B
Correct Answer
A declaration syntax (namespace Foo;) removing one level of indentation for the entire file
Explanation
namespace MyApp.Models; at the top of a file removes the { } block, reducing indentation for all types in the file.
Progress
85/100