Exemplo n.º 1
0
        public void SetProperty <T>(string name, T value)
        {
            IProxyPropertyInfo proxyPropertyInfo = this.ProxyType.GetProperty(name);

            if (proxyPropertyInfo == null)
            {
                throw new InvalidOperationException("Property not found");
            }

            proxyPropertyInfo.SetValue(this.Value, value);
        }
Exemplo n.º 2
0
 public virtual void SetValue(object value)
 {
     propertyInfo.SetValue(source, value);
 }