Example #1
0
 public TestProxy2(TestObject value)
 {
     this.value = value;
     this.otherNamedPropertyAdapter = this.CreatePropertyAdapter(
         nameof(this.OtherNamedProperty),
         () => this.value.Property
         );
 }
Example #2
0
            public TestProxy3(TestObject value)
            {
                this.value = value;

                this.propertyAdapter = this.CreatePropertyAdapter(
                    nameof(this.Property),
                    () => this.value.SubProperty.Property
                    );
            }
Example #3
0
 public TestProxy9(TestObject source)
 {
     this.collectionAdapter = this.CreatePropertyAdapter(
         nameof(this.Collection),
         () => source.PropertyCollection,
         value => new TestProxy9(value)
         );
     this.collectionDerivedAdapter = this.CreatePropertyAdapter(
         nameof(this.CollectionDerived),
         () => string.Join("-", (from Value in this.Collection select Value.ToString()).ToArray()));
 }
Example #4
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
         );
 }
Example #5
0
 public WeakAdapter(TestObject value)
 {
     this.value           = value;
     this.propertyAdapter = this.CreatePropertyAdapter(nameof(this.Property), () => this.value.Property);
 }