Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NamespaceA
- ----------
- public class Wrapper
- {
- private Connection _mysqlConnection;
- public Wrapper(ConnectionInformation connectionInformation)
- {
- _mysqlConnection = new Connection(connectionInformation);
- }
- }
- NamespaceB
- ----------
- public class Connection
- {
- private ConnectionInformation _connectionInformation;
- public Connection(ConnectionInformation connectionInformation)
- {
- _connectionInformation = connectionInformation;
- }
- }
- public class ConnectionInformation
- {
- private String _mysqlHostname;
- private String _mysqlUsername;
- private String _mysqlPassword;
- private String _mysqlDatabase;
- public String MySqlHostname
- {
- get { return _mysqlHostname; }
- set { _mysqlHostname = value; }
- }
- public String MySqlUsername
- {
- get { return _mysqlUsername; }
- set { _mysqlUsername = value; }
- }
- public String MySqlPassword
- {
- get { return _mysqlPassword; }
- set { _mysqlPassword = value; }
- }
- public String MySqlDatabase
- {
- get { return _mysqlDatabase; }
- set { _mysqlDatabase = value; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement