We are now going to make use of the MyLib.dll that was created in the
previous lesson. The dll contains IsEven(int n) method that we want to
call.
- Open UseMyDll.cs, located in the folder Projects/Lesson_7
Note that using MyLib; line makes all the
public classes and methods in MyLib.dll available.
- Select Options/Project off the menu
- Specify Exe as the target
- Add /reference:MyLib.dll to the Project Options box
- Click on the Compile button ,
and
- Click on Run through Console
to see the output of the program.
Continue...