Syntax to declare namespace in .NET

State the syntax used to declare the namespace in .NET?

E

Expert

Verified

In .NET, the “namespace” keyword is used to declare a namespace in the code.

a) Syntax to declare a namespace in C# is:

 namespace UserNameSpace;

b) Syntax to declare a namespace in VB is:

 Namespace UserNameSpace

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.