Hi,
The following code snippet doesnâ??t compile with,
helloworld.cs(25,39): error CS0246: The type or namespace name 'Library' could not be found (are you missing a using directive or an assembly reference?)
Why canâ??t the â??Libraryâ?? namespace be found when its location â??Company.Applicationâ?? has been referenced in the Tester class.
using System;
namespace Company.Application.Library
{
class Math
{
public static int Add(int a, int b)
{
return(a + b);
}
}
}
namespace Test
{
using Company.Application;
class Tester
{
static void Main()
{
int iResult = Library.Math.Add(2, 2);
Console.WriteLine(iResult);
}
}
}