Exemplo n.º 1
0
 public TestProxy7(TestObject value)
 {
     this.value           = value;
     this.propertyAdapter = this.CreatePropertyAdapter(
         nameof(this.Property),
         () => this.value.CircularDependencyProperty,
         val => this.value.CircularDependencyProperty = val);
 }
Exemplo n.º 2
0
 public TestProxy(TestObject value)
 {
     this.value           = value;
     this.propertyAdapter = this.CreatePropertyAdapter(
         nameof(this.Property),
         () => this.value.Property,
         _ => this.value.Property = _
         );
     this.twoPropertiesAdapter = this.CreatePropertyAdapter(
         nameof(this.TwoProperties),
         () => this.value.Property + this.value.Property2
         );
     this.complexPropertyAdapter = this.CreatePropertyAdapter(
         nameof(this.ComplexProperty),
         () => this.value.Property + this.value.Property + this.value.Property
         );
 }