I have a interface called iChannels, which has only one method.
using CHNL;
namespace iInterface
{
public interface iChannels
{
string getData(string docXML);
}
}
Then in another project I have a class called Channel1, wich is defined like this:
using iInterface;
namespace CHNL
{
public class Channel1:iChannels
{
string getData(string str)
{
return str;
}
}
}
I had to make a cross-reference, for the interface and class know each other.
After that I have a webform, and I just want to use using iInterface;
, but if I only do that, I can't create Channel1 objects.
My intent is to create Channel1 objects, just using iInterface
Library.