■
Source Code
The CSharpCarClient project is located under the Chapter 15 subdirectory.
Building a Visual Basic Client Application
To illustrate the language-agnostic attitude of the .NET platform, let’s create another Console Appli-
cation (VbNetCarClient), this time using Visual Basic (see Figure 15-11). Once you have created the
project, set a reference to CarLibrary.dll using the Add Reference dialog box, which can be acti-
vated by the Project ➤ Add Reference menu option.
Figure 15-11.
Creating a Visual Basic Console Application
Like C#, Visual Basic requires you to list each namespace used within the current file. However,
Visual Basic offers the Imports keyword rather than the C# using keyword. Given this, add the fol-
lowing Imports statement within the Module1.vb code file:
Do'stlaringiz bilan baham: |