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; }
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); }