I have two classes. In each of them, an instance of another class is needed.
SQLite sqllite = new SQLite(config); FireBird fb = new FireBird(config, sqllite); those. I need
SQLite sqllite = new SQLite(config,fb); But I can't do that. it has not been created yet.
I cannot change classes in some places - the same will happen. What one needs another, which has not yet been created.
Here is my SQLite class. It has a public UserData GetData() method public UserData GetData() The method takes data from SQLite and must transfer it to the fb.InsertData(ud) instance.
In turn, fb should do the same. It should be able to take data from FireBird and send it to the sqllite.InsertData(ud) instance sqllite.InsertData(ud)