public Service(Boolean DBUsage) { Connector connector; if (DBUsage) { connector = new DBConnector(); resource = connector.Create(); } else { connector = new FileConnector(); resource = connector.Create(); } }
public Service(bool useDB) { Connector connector; if (useDB) { connector = new DBConnector(); resource = connector.Create(); } else { connector = new FileConnector(); resource = connector.Create(); } }