public void OnDeserialization(object sender) { //upon deserialization use the int key to get the latest value from //factory (this is make believe...) TextProperty = SomeFactory.GetCurrentValue(this.SimpleKeyProperty); }
public static void Foo() { SomeFactory factory = GenerateSample; // result covariance var result = factory.Invoke(); // ClassA }
public MyCompositeDisposable(string uri, int id, int innerid) { A = SomeFactory.GetA(uri); B = A.GetB(id); C = B.GetC(innerId); }