Exemple #1
0
        public override Task <T> GetProperty <T>(string name)
        {
            ScriptMemberInfo property = null;

            if (cachedPropertyInfo.TryGetValue(name, out property))
            {
                return(base.GetProperty <T>(property.ScriptAlias));
            }
            else
            {
                return(base.GetProperty <T>(name));
            }
        }
Exemple #2
0
        public override async Task <bool> SetProperty(string name, object value)
        {
            ScriptMemberInfo property = null;

            if (cachedPropertyInfo.TryGetValue(name, out property))
            {
                return(await base.TrySetProperty(property.ScriptAlias, value, property.CreateIfNotExists, property.HasOwnProperty));
            }
            else
            {
                return(await base.SetProperty(name, value));
            }
        }