public TestProxy10(TestObject value) { this.Source = value; this.collectionPropertyAdapter = this.CreatePropertyAdapter( nameof(this.CollectionProperty), () => from Item in this.Source.PropertyCollection where Item.Property == 0 select Item, item => new TestProxy10(item)); }
public ThingContainerAdapter(ThingContainer container) { this.oddThingsPropertyAdapter = this.CreatePropertyAdapter( nameof(this.OddThings), () => from Thing in container.AllThings where container.EvenThings.Contains(Thing) == false select Thing, value => ThingAdapter.GetInstance(value)); }
public TestProxy6(TestObject value, int property = 0) { this.Source = value; this.DependentProperty = property; this.collectionPropertyAdapter = this.CreatePropertyAdapter( nameof(this.CollectionProperty), () => TestProxy6.ReturnOrThrow(this.Source.PropertyCollection, this.ThrowException), item => new TestProxy6(item, value.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 ObservableCachedValueCollection(EnumerablePropertyAdapter <TSource, TSourceEnumerationItem, TTargetEnumerationItem> adapter, TSource source) { this.adapter = adapter; this.source = source; }