public void MyMethod(SomethingBaseToGenerate somethingElse) { SomethingElse = somethingElse; SomethingElse.Something = this; }