Working with DLLs in the IDE

Can you use the ch13_02.dll file in the IDE? Yes. In the IDE, you create a new console project, ch13_05. You then right-click the References node in the Solution Explorer, select the Add Reference menu item, and add a reference to ch13_02.dll. Now you can use the same code as was used in ch13_03.cs to interact with ch13_02.dll in the IDE console project, as you see in Listing 13.5.

Listing 13.5. Using a DLL (ch13_05.cs)
using System;
using MultiModule;

namespace ch13_05
{
  /// <summary>
  /// Summary description for Class1.
  /// </summary>
  class Class1
  {
    /// <summary>
    /// The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main(string[] args)
    {
      ch13_02 stringer = new ch13_02();
					 stringer.Text ...

Get Microsoft® Visual C#® .NET 2003 Kick Start now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.