Hi everybody. I have this problem that is puzzling me and I am unable to solve it at all. I have two files and they are:


As the name suggests, the "ClLib1" holds the DLL file, whereas the "ClassLibraryApp1" is a Windows Application used to test the DLL file. And so, I have a few .cs file in ClLib1 namely bye2009.cs and hello2010.cs. While I was trying to put in "using ClLib1;" in ClassLibraryApp1 (whereby I've already added the reference from the ClLib's bin folder), I realise I am unable to put "using ClLib1.bye2009".

How do I go about solving this?

Edited by blur_guava: n/a

7 Years
Discussion Span
Last Post by ddanbe

>While I was trying to put in "using ClLib1;" ...

using Directive has two usage:

1. Permit the use of types in a namespace.
2. Create an alias for a namespace.

Edited by __avd: n/a


You cannot use using ClLib1.bye2009; because bye2009 is a type.
Use using ClLib1;

This is the same as using System.Console; (can not do that)
Use using System;
System contains a Console type.
In your program you can use Console.Read(); whatever...

Edited by ddanbe: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.