示例#1
0
            /// <summary>
            /// Définit la valeur de la propriété pour un bean.
            /// </summary>
            /// <param name="component">Bean.</param>
            /// <param name="value">Valeur.</param>
            public override void SetValue(object component, object value)
            {
                BeanDynamic bean = component as BeanDynamic;

                if (bean == null)
                {
                    throw new NotSupportedException();
                }
                bean.SetValue(this, value);
            }
示例#2
0
            /// <summary>
            /// Retourne la valeur de la propriété pour un bean.
            /// </summary>
            /// <param name="component">Bean.</param>
            /// <returns>Valeur.</returns>
            public override object GetValue(object component)
            {
                BeanDynamic bean = component as BeanDynamic;

                if (bean == null)
                {
                    throw new NotSupportedException();
                }
                return(bean.GetValue(this));
            }