public override Runtime.Descriptors.PropertyDescriptor GetOwnProperty(string propertyName)
        {

            var descriptor = base.GetOwnProperty(propertyName);
            if (descriptor == Runtime.Descriptors.PropertyDescriptor.Undefined)
            {
                var prop = root.Properties().FirstOrDefault(p => p.Name == propertyName);
                if (prop != null)
                    Properties[propertyName] = descriptor = new Runtime.Descriptors.NTSPropertyDescriptor(Engine, this, prop);
            }
            return descriptor;
        }
Ejemplo n.º 2
0
        public override Runtime.Descriptors.PropertyDescriptor GetOwnProperty(string propertyName)
        {
            var descriptor = base.GetOwnProperty(propertyName);

            if (descriptor == Runtime.Descriptors.PropertyDescriptor.Undefined)
            {
                var prop = root.Properties().FirstOrDefault(p => p.Name == propertyName);
                if (prop != null)
                {
                    Properties[propertyName] = descriptor = new Runtime.Descriptors.NTSPropertyDescriptor(Engine, this, prop);
                }
            }
            return(descriptor);
        }