Beispiel #1
0
        public void SetProperty(string property, object value)
        {
            PropertyProvider.CheckProperty(property);
            PropertyInfo pd = _GetProperty(property);

            if (pd == null)
            {
                throw RuntimeFailure.PropertyNotFound(nameof(property), property);
            }
            if (pd.GetValue(ObjectContext) != value)
            {
                pd.SetValue(ObjectContext, value);
            }
        }