예제 #1
0
        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");
            }
        }
예제 #2
0
 public ProxyObject(ProxyObject parentProxy, IProxyPropertyInfo proxyPropertyInfo) : this(parentProxy, proxyPropertyInfo, null)
 {
 }