F
f00sion
I found a good tutorial of how to supply the objects without having
the implementation files on the client. This was working great until I
realized that I couldnt use any constructors with server activated
objects, so I switched to client activated objects only to run into
the next roadblock, doh! can't instantiate abstract classes... here is
a simple example of the structure, im sure there is a way to do it to
allow instantiation but I am not as knowledgeable of inheritance as I
should be:
namespace JLClient
{
public abstract class address : MarshalByRefObject
{
public abstract string foo{get;set;}
public abstract string test();
}
}
namespace JLBase
{
public class address : JLClient.address
{
public override string foo{get{return _foo;}set{_foo=value}}
public override string test()
{ return "blah"; }
private string _foo;
}
}
The client will only need to have the JLClient.dll for the structure
information and everything would work great... how do I do it without
using abstract classes and still having access to various
constructors?.
the implementation files on the client. This was working great until I
realized that I couldnt use any constructors with server activated
objects, so I switched to client activated objects only to run into
the next roadblock, doh! can't instantiate abstract classes... here is
a simple example of the structure, im sure there is a way to do it to
allow instantiation but I am not as knowledgeable of inheritance as I
should be:
namespace JLClient
{
public abstract class address : MarshalByRefObject
{
public abstract string foo{get;set;}
public abstract string test();
}
}
namespace JLBase
{
public class address : JLClient.address
{
public override string foo{get{return _foo;}set{_foo=value}}
public override string test()
{ return "blah"; }
private string _foo;
}
}
The client will only need to have the JLClient.dll for the structure
information and everything would work great... how do I do it without
using abstract classes and still having access to various
constructors?.