public TestProxy2(TestObject value) { this.value = value; this.otherNamedPropertyAdapter = this.CreatePropertyAdapter( nameof(this.OtherNamedProperty), () => this.value.Property ); }
public TestProxy3(TestObject value) { this.value = value; this.propertyAdapter = this.CreatePropertyAdapter( nameof(this.Property), () => this.value.SubProperty.Property ); }
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())); }
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 ); }
public WeakAdapter(TestObject value) { this.value = value; this.propertyAdapter = this.CreatePropertyAdapter(nameof(this.Property), () => this.value.Property); }