D
David Elliott
I have the following setup:
Project_1 Library
===========================
public interface IDataStorable
{
}
Project_2 Library
===========================
Added a "using <namespace>" to Project_1 namespace
Added reference to Project_1
public class CommonDataStorage : IDataStorable
{
private IDataStorable fileSystem = null;
}
Project_3 Library
===========================
Added a "using <namespace>" to Project_2 namespace
Added reference to Project_2
public class DocProcWSApi
{
static private CommonDataStorage dataStorage = null;
}
I found the error "Compiler Error CS0011" on MSDN
http://msdn.microsoft.com/library/d...n-us/cscomp/html/vcerrcompilererrorsc0011.asp
But don't quite understand why this is a problem. Project_1 and Project_2 compile just fine.
In order to get Project_3 to compile I added a reference to Project_1. This seems quite wrong.
Project_3 shouldn't have to know the internals of Project_2. Project_2 should handle any
referencing to Project_1, which it does.
Is there a better explaination than "That's jus the way that it is"?
Why isn't this more of a problem with the rest of the framework?
Thanks,
Dave
Project_1 Library
===========================
public interface IDataStorable
{
}
Project_2 Library
===========================
Added a "using <namespace>" to Project_1 namespace
Added reference to Project_1
public class CommonDataStorage : IDataStorable
{
private IDataStorable fileSystem = null;
}
Project_3 Library
===========================
Added a "using <namespace>" to Project_2 namespace
Added reference to Project_2
public class DocProcWSApi
{
static private CommonDataStorage dataStorage = null;
}
I found the error "Compiler Error CS0011" on MSDN
http://msdn.microsoft.com/library/d...n-us/cscomp/html/vcerrcompilererrorsc0011.asp
But don't quite understand why this is a problem. Project_1 and Project_2 compile just fine.
In order to get Project_3 to compile I added a reference to Project_1. This seems quite wrong.
Project_3 shouldn't have to know the internals of Project_2. Project_2 should handle any
referencing to Project_1, which it does.
Is there a better explaination than "That's jus the way that it is"?
Why isn't this more of a problem with the rest of the framework?
Thanks,
Dave