public void test() { var obj1 = new PrivateTest(); var obj2 = new PrivateTest(); obj1.Metoda(12.3); obj1.InjectValue(obj1, 7); obj1.InjectValue(obj2, 5); }
public void InjectValue(PrivateTest testObj, int newValue) { testObj.test = newValue; }