Monday, November 29, 2010

How: use multiple namespaces

Namespaces are used imported libraries in .NET programming.

If the internal .NET libraries to use one, you must have the namespace at the top of the code-behind file be included. Microsoft develops and distributes .NET programming languages. Languages include c# and VB.NET. Each of those languages may have multiple namespaces included in the upper part of the code file. Difficulty: average

Instructions
  1. 1

    Start Visual Studio and open your own Web or the desktop project.

Double-click the right side of the console on the shape that you want to edit. The form is in design.
  • 2

    Click the form and select "Show code".

  • This opens the code-behind file. Above note that some namespaces are already defined. This is the default Microsoft in any form recorded and the Web page that you create in the .NET libraries.
  • 3

    Add your namespaces at the top of your code file.

  • The following code demonstrates how your project VB.NET or c# two namespaces:
    VB.NET
    System.data.SqlClient imports
    System.data imports
    C#
    to System.data.SqlClient.
    for system.data

    No comments:

    Post a Comment