Hello,
I'm building a POC architecture framework, in which I have my business
objects (BOs) made of internal classes and my transfer objects (TOs)
made of public classes.
what I'd like to do is have a constructor for each TO and use the BO as a parameter, so to build the TO using the BO
what I coded is this:
public class ClientTO {
public string name;
public ClientTO(ClientBO client) {
this.name = client.name;
}
}
The problem is that ClientBO is internal and ClientTO is public, so it
gives a compilation error "inconsistent accessibility: parameter type
ClientBO is less accessible than method ClientTO(ClientBO)"
any ideas? I don't to make my BOs public so to force programmers to use TOs
thanks in advance,
mariano