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); }
public override bool DefineOwnProperty(JsValue property, PropertyDescriptor desc) { EnsurePropertiesInitialized(); if (!fieldProperties.ContainsKey(property)) { fieldProperties[property] = new ContentDataProperty(this) { Value = desc.Value }; } return(true); }