Пример #1
0
            public object GetProperty(string propertyName)
            {
                var result = _jsValue.GetProperty(propertyName);

                if (result == null)
                {
                    return(null);
                }
                object unpacked = null;

                Helpers.Unpackvalue(ref unpacked, result);
                return(unpacked);
            }
Пример #2
0
            public override bool TryGetMember(GetMemberBinder binder, out object result)
            {
                var property = _jsValue.GetProperty(binder.Name);

                if (property == null)
                {
                    result = null;
                }
                else
                {
                    object unpacked = null;
                    Helpers.Unpackvalue(ref unpacked, property);
                    result = unpacked;
                }
                return(true);
            }