Example #1
0
        public override bool DefineOwnProperty(string propertyName, PropertyDescriptor desc, bool throwOnError)
        {
            EnsurePropertiesInitialized();

            if (!fieldProperties.ContainsKey(propertyName))
            {
                fieldProperties[propertyName] = new ContentDataProperty(this)
                {
                    Value = desc.Value
                };
            }

            return(true);
        }
Example #2
0
        public override bool DefineOwnProperty(JsValue property, PropertyDescriptor desc)
        {
            EnsurePropertiesInitialized();

            if (!fieldProperties.ContainsKey(property))
            {
                fieldProperties[property] = new ContentDataProperty(this)
                {
                    Value = desc.Value
                };
            }

            return(true);
        }