public ProxyCollection(ProxyObject parentProxy, IProxyPropertyInfo proxyPropertyInfo) : base(parentProxy, proxyPropertyInfo) { if (!typeof(T).Equals(proxyPropertyInfo.PropertyType)) { throw new ArgumentException(); } this._proxyItemPropertyInfo = this.ProxyType.GetProperty("Item"); if (this._proxyItemPropertyInfo == null) { throw new InvalidOperationException("Item not found"); } }
public ProxyObject(ProxyObject parentProxy, IProxyPropertyInfo proxyPropertyInfo) : this(parentProxy, proxyPropertyInfo, null) { }